Filter interviews by
I applied via Naukri.com and was interviewed in Sep 2024. There was 1 interview round.
Use a sorting algorithm to sort an array of strings representing names.
Use a sorting algorithm like bubble sort, selection sort, or merge sort to sort the array of strings.
Compare each pair of strings and swap them if they are in the wrong order.
Repeat this process until the array is sorted.
Example: ['John', 'Alice', 'Bob'] -> ['Alice', 'Bob', 'John']
To connect to a database in Spring Boot, you need to configure the database properties in the application.properties file and use Spring Data JPA.
Configure the database properties in the application.properties file, including the URL, username, and password.
Add the necessary dependencies in the pom.xml file for Spring Data JPA and the database driver.
Create a repository interface that extends JpaRepository to interact ...
Spring Boot annotations are used to simplify the development process by providing metadata to the Spring framework.
1. @RestController - Used to define RESTful web services.
2. @RequestMapping - Maps HTTP requests to handler methods of MVC and REST controllers.
3. @Autowired - Used for automatic dependency injection.
4. @Component - Indicates that a class is a Spring component.
5. @Service - Indicates that a class is a serv...
Two components can communicate using a shared service or event bus.
Use a shared service to store and retrieve data that both components need.
Implement an event bus to allow components to subscribe and publish events.
Utilize a state management library like Redux to manage shared state between components.
Two microservices can interact through synchronous communication, asynchronous communication, event-driven architecture, and shared database.
Synchronous communication using REST APIs or gRPC
Asynchronous communication using message queues like RabbitMQ or Kafka
Event-driven architecture using publish-subscribe pattern with message brokers
Shared database for direct data exchange between microservices
I applied via LinkedIn and was interviewed in Dec 2024. There was 1 interview round.
posted on 21 Jun 2024
HashMap is a data structure that stores key-value pairs and uses hashing to efficiently retrieve values.
HashMap internally uses an array of linked lists to store key-value pairs.
When a key-value pair is added, the key is hashed to find the index in the array where it will be stored.
If multiple keys hash to the same index, a linked list is used to handle collisions.
HashMap allows one null key and multiple null values.
Th...
Singleton class is a class that can only have one instance and provides a global point of access to it.
Singleton class restricts the instantiation of a class to one object.
It provides a way to access its unique instance globally.
Commonly used in scenarios where only one instance of a class is needed, such as database connections or thread pools.
The task is to find all pairs in an array that add up to a given sum.
Iterate through the array and store each element in a hash set.
For each element, check if the difference between the sum and the element exists in the hash set.
If it does, add the pair to the result list.
Interview experience
Process Associate
418
salaries
| ₹1.8 L/yr - ₹4 L/yr |
Senior Process Associate
127
salaries
| ₹2.4 L/yr - ₹6 L/yr |
Developer 3
62
salaries
| ₹12.9 L/yr - ₹32 L/yr |
Business Analyst
60
salaries
| ₹8 L/yr - ₹25.5 L/yr |
Team Lead
60
salaries
| ₹5.2 L/yr - ₹15 L/yr |
Yardi Systems
MRI Software
Buildium
Entrata