Filter interviews by
Be the first one to contribute and help others!
I was interviewed in Jan 2025.
A sequence was provided: 4181, 2684, 1597, 987, 610.
first 2 are given and write code for other value calculation using java 8
The second question required writing a reverse of a palindrome using both Java 8 streams. I was able to successfully write both and clear the first round.
Java 17 introduces sealed classes to restrict inheritance and improve code maintainability.
Sealed classes are declared using the 'sealed' keyword followed by the permitted subclasses.
Subclasses of a sealed class must be either final or sealed themselves.
Errors may occur when trying to extend a sealed class with a non-permitted subclass.
Implementation of 'notify me if item is back in stock' feature in an ecommerce application
Create a database table to store user notifications for out-of-stock items
Implement a service to check item availability and send notifications to subscribed users
Provide a user interface for users to subscribe to notifications for specific items
posted on 27 Jan 2025
Diesel Generator: A Reliable Power Source
A diesel generator is a self-contained power generating unit that combines a diesel engine with an electric generator (often an alternator). It's a versatile and widely used source of electricity, particularly in situations where a reliable power supply is crucial.
How Diesel Generators Work
* Diesel Engine: The diesel engine, fueled by diesel fuel, acts as the prime mover. It converts the chemical energy of the fuel into mechanical energy through combustion.
* Electric Generator: The mechanical energy from the engine is transferred to the generator, which converts it into electrical energy. This electrical energy can then be used to power various appliances and equipment.
Applications of Diesel Generators
* Backup Power: Diesel generators are commonly used as backup power sources for homes, businesses, hospitals, and critical infrastructure during power outages.
* Remote Locations: In areas with limited or no access to the grid, diesel generators provide a reliable source of electricity for various applications.
* Construction Sites: Diesel generators power tools and equipment on construction sites, ensuring work can continue even in remote locations.
* Off-Grid Living: Individuals living off the grid often rely on diesel generators for their electricity needs.
* Data Centers: Diesel generators provide backup power to ensure the continuous operation of critical data centers.
Advantages of Diesel Generators
* Reliability: Diesel engines are known for their durability and reliability, making them suitable for demanding applications.
* Fuel Efficiency: Modern diesel engines offer excellent fuel efficiency, reducing operating costs.
* Wide Power Range: Diesel generators are available in a wide range of sizes and power capacities, catering to various needs.
* Easy Maintenance: Diesel generators are relatively easy to maintain and service.
Disadvantages of Diesel Generators
* Noise: Diesel generators can be noisy, which may be a concern in certain settings.
Panel and protection systems are essential components in electrical engineering for controlling and safeguarding electrical circuits.
Different types of panels include distribution panels, control panels, and instrumentation panels.
Protection systems include overcurrent protection, earth fault protection, and differential protection.
Panels are used to house electrical components and provide a safe environment for operat...
I was interviewed in Dec 2024.
API Gateway implementation is a centralized service that routes, manages, and secures API calls.
API Gateway acts as a single entry point for all API calls
It can handle authentication, rate limiting, caching, and request/response transformations
Examples include AWS API Gateway, Apigee, Kong
Circuit breaker is a design pattern used to prevent system overload by temporarily stopping requests to a failing service.
Circuit breaker monitors requests to a service and opens when the service fails repeatedly.
It helps prevent cascading failures and allows the system to gracefully degrade.
Once the circuit breaker is open, it can periodically check if the service has recovered before allowing requests again.
Deadlock is a situation in which two or more processes are unable to proceed because each is waiting for the other to release a resource.
Avoid circular wait by ensuring processes request resources in the same order.
Prevent hold and wait by requiring processes to request all needed resources at once.
Implement a timeout mechanism to break potential deadlocks.
Use resource allocation graphs to detect and prevent deadlocks.
...
The equals() method is used to compare the contents of two objects for equality.
The equals() method is a method of the Object class in Java.
It is used to compare the contents of two objects for equality.
The default implementation of equals() in the Object class compares memory addresses, so it is often overridden in custom classes to compare content.
Example: String class overrides equals() method to compare the content
MongoDB was integrated in the application by using the official Java driver and configuring connection settings.
Used the official MongoDB Java driver to interact with the database
Configured connection settings such as host, port, database name, and authentication credentials
Implemented CRUD operations using MongoDB Java driver methods
Utilized MongoDB aggregation framework for complex queries
Hibernate is an open-source Java framework that simplifies the development of database interactions in Java applications.
Hibernate is an Object-Relational Mapping (ORM) tool that maps Java objects to database tables.
It provides a way to perform database operations using Java objects instead of writing SQL queries.
Hibernate handles the mapping of Java classes to database tables and vice versa, as well as the generation ...
Runnable is a functional interface with a single run() method, while Callable is a functional interface with a single call() method.
Runnable is used for tasks that do not return a result, while Callable is used for tasks that return a result.
Callable can throw checked exceptions, while Runnable cannot.
Callable returns a Future object, which can be used to retrieve the result of the computation.
Example: Runnable - execu...
The Callable interface in Java returns a Future object.
Callable interface returns a Future object which represents the result of a computation that may not be available yet.
The Future object can be used to retrieve the result of the computation, check if it is done, or cancel the computation.
Example: Callable<Integer> task = () -> { return 42; }
Monitor application health using metrics, logs, alerts, and performance monitoring tools.
Use monitoring tools like Prometheus, Grafana, or New Relic to track key metrics such as CPU usage, memory usage, response times, and error rates.
Implement logging to record important events and errors in your application. Use tools like ELK stack (Elasticsearch, Logstash, Kibana) for log analysis.
Set up alerts to notify you of any...
To call an API in a Microservice architecture, use HTTP requests or messaging protocols like gRPC.
Use HTTP requests to communicate between microservices
Implement RESTful APIs for easy integration
Leverage messaging protocols like gRPC for efficient communication
Consider using service discovery mechanisms for dynamic API calls
Profiles in Java are configurations that define the capabilities of a Java platform.
Profiles allow developers to target specific types of devices or applications.
They help in reducing the size of the Java runtime environment by including only the necessary APIs.
Examples include Java SE Embedded Profile for embedded devices and Java SE Compact Profile for resource-constrained environments.
OpenFeign is a declarative web service client used to simplify the process of making HTTP requests in microservices architecture.
OpenFeign allows developers to define RESTful web services as interfaces and automatically generate the necessary implementation code.
It integrates seamlessly with Spring Cloud and other microservices frameworks to facilitate communication between services.
OpenFeign supports features like loa...
Service registry and discovery involves registering services and allowing clients to discover and connect to them.
Implement a service registry where services can register themselves with metadata
Use a service discovery mechanism for clients to find and connect to services
Implement health checks to ensure services are available and healthy
Use a load balancer to distribute traffic among multiple instances of a service
Spring Boot Actuators are built-in tools that provide insight into the running application.
Actuators expose various endpoints to monitor and manage the application.
They can be used to check health, metrics, environment details, and more.
Examples include /actuator/health, /actuator/metrics, and /actuator/env.
Synchronous communication is blocking, while asynchronous communication is non-blocking.
Synchronous communication waits for a response before continuing, while asynchronous communication does not wait.
Examples of synchronous communication include traditional function calls, while examples of asynchronous communication include callbacks and promises.
Synchronous communication can lead to performance issues if there are d...
Synchronized keyword is used in Java to control access to shared resources by multiple threads.
Synchronized keyword can be applied to methods or code blocks to ensure only one thread can access the synchronized code at a time.
It prevents race conditions and ensures thread safety by creating a lock on the object or class.
Example: synchronized void myMethod() { // synchronized code block }
Excessive use of synchronized blocks and methods in Java can lead to performance issues and potential deadlocks.
Decreased performance due to increased contention for locks
Potential deadlocks if multiple threads are waiting for each other to release locks
Increased complexity and difficulty in debugging and maintaining code
Use synchronized sparingly and consider alternatives like ConcurrentHashMap or Lock interface
The number of threads needed for an application can be determined based on factors like the type of tasks, hardware resources, and performance requirements.
Consider the type of tasks your application needs to perform - CPU-bound tasks may benefit from more threads, while I/O-bound tasks may not.
Take into account the hardware resources available - more threads may be beneficial on a multi-core processor compared to a si...
Executor framework is a framework in Java that provides a way to manage and execute tasks asynchronously.
Allows for managing thread execution in a more efficient way
Provides a way to decouple task submission from task execution
Supports various types of executors like ThreadPoolExecutor and ScheduledExecutorService
Helps in handling tasks concurrently and asynchronously
BlockingQueue is an interface in Java that represents a queue which supports operations that wait for the queue to become non-empty when retrieving an element and wait for space to become available in the queue when adding an element.
BlockingQueue is part of the java.util.concurrent package.
It is used for implementing producer-consumer scenarios where multiple threads are involved.
Methods like put() and take() are used...
Seeking new challenges and opportunities for growth.
Desire for career advancement
Looking for new challenges
Seeking better work-life balance
Company restructuring or downsizing
Relocation to a new area
posted on 7 Dec 2024
I applied via Naukri.com
The amount of money that can be taken from parents should be reasonable and within their means.
It is important to consider the financial situation of the parents before asking for money.
Discuss the specific amount needed and the purpose for which it will be used.
Ensure that the parents are comfortable with the amount and are willing to provide support.
Avoid pressuring or manipulating parents into giving more money than...
posted on 31 Oct 2024
I applied via Naukri.com and was interviewed in Oct 2024. There were 3 interview rounds.
Sales marketing event management
Generating leads involves identifying potential customers and engaging with them to convert into sales opportunities.
Identify target market and ideal customer profile
Utilize digital marketing strategies such as SEO, social media, and email campaigns
Attend industry events and network with potential leads
Offer valuable content through blogs, webinars, and whitepapers
Utilize lead generation tools such as CRM software and
Convince parents by highlighting benefits, addressing concerns, and providing evidence.
Highlight the benefits of the product or service to the parents, such as improved academic performance or safety features.
Address any concerns or objections they may have, such as cost or potential risks.
Provide evidence or testimonials from other parents who have had positive experiences with the product or service.
Offer a trial or ...
Achieve target by setting clear goals, creating a strategic plan, monitoring progress, adjusting strategies as needed, and staying motivated.
Set clear and achievable goals
Create a strategic plan outlining steps to reach the target
Monitor progress regularly to track performance
Adjust strategies as needed based on feedback and results
Stay motivated and focused on the end goal
Finding genuinely in field requires networking, research, and building relationships.
Attend industry events and conferences to meet professionals in the field
Utilize social media platforms like LinkedIn to connect with industry experts
Join relevant professional organizations and associations to expand your network
Conduct informational interviews with professionals to learn more about the field
Stay updated on industry t...
Sales and marketing events marketing team management how to calculate lid how to collect positive data
posted on 1 Jan 2025
I applied via Referral and was interviewed in Dec 2024. There were 3 interview rounds.
The company currently has 150 employees working.
The company has a total of 150 employees currently working.
The number of employees may vary due to hiring or resignations.
It is important to keep track of the current employee count for reporting purposes.
The project is working in multiple countries.
The project is currently active in 10 countries.
Each country has its own team of workers.
The project requires coordination between different countries for smooth operation.
Comprehending and presenting a Technical Article on Data science
posted on 21 Jan 2025
I have a strong technical expertise in environmental management, including knowledge of environmental regulations, impact assessments, and sustainability practices.
Knowledge of environmental regulations and compliance requirements
Experience conducting environmental impact assessments
Implementing sustainability practices in organizations
Proficiency in environmental management systems such as ISO 14001
Ability to develop ...
I have extensive experience in coordinating and managing visits from both State and Central Government officials.
Coordinated logistics for State Government officials' visit to assess environmental impact of a new project
Facilitated meetings between Central Government representatives and key stakeholders to discuss policy implementation
Prepared detailed briefings and presentations for government visits to showcase envir
Describe the safety culture within your industry.
based on 4 reviews
Rating in categories
Executive Accountant
3
salaries
| ₹4.2 L/yr - ₹5 L/yr |
TCS
HCLTech
Larsen & Toubro Limited
BYJU'S