Filter interviews by
I was interviewed in Aug 2024.
Design a layered architecture for saving user data to db with appropriate annotations.
Create a data access layer (DAO) to interact with the database using annotations like @Repository
Implement a service layer to handle business logic with annotations like @Service
Use @Entity annotation on model classes to map them to database tables
Add @Id annotation on primary key fields in model classes
Utilize @Transactional annotati
Using RestControllerAdvice to handle exceptions at controller level in Java
Create a class annotated with @RestControllerAdvice to handle exceptions globally
Use @ExceptionHandler annotation in the class to define methods to handle specific exceptions
Return ResponseEntity with appropriate status code and error message in the exception handling methods
SQL query to find nth highest salary using LIMIT and OFFSET.
Use ORDER BY salary DESC to sort salaries in descending order.
Use LIMIT 1 OFFSET n-1 to get the nth highest salary.
For example, SELECT salary FROM employees ORDER BY salary DESC LIMIT 1 OFFSET 2 will give the 3rd highest salary.
LinkedHashSet is the data structure to use for storing data in order of insertion and uniqueness.
LinkedHashSet maintains insertion order and ensures uniqueness of elements.
It uses a combination of LinkedList and HashSet to achieve this.
Example: LinkedHashSet
Top trending discussions
I applied via Recruitment Consulltant and was interviewed in May 2024. There were 2 interview rounds.
Lookup is used to perform a left outer join in MongoDB, while graphlookup is used to perform recursive graph traversal.
Lookup is used to perform a left outer join between two collections in MongoDB.
Graphlookup is used to perform recursive graph traversal in a collection that contains graph data.
Lookup can only perform a single level join, while graphlookup can perform multiple levels of traversal.
Lookup is faster than
Use a hashmap to count the frequency of each character in a string.
Create a hashmap to store characters as keys and their frequencies as values.
Iterate through the string and update the hashmap accordingly.
Return the hashmap with character frequencies.
Creating a REST API from controller to repository using NOTEPAD
Create a controller class with mapping annotations for REST endpoints
Implement service layer to handle business logic and interact with repository
Define repository interface with methods for data access operations
Use Spring Boot for easy setup and configuration
Test API endpoints using tools like Postman
Kafka is a distributed streaming platform used for building real-time data pipelines and streaming applications.
Kafka is designed to handle high-throughput, fault-tolerant, and scalable real-time data streams.
It uses topics to categorize data streams, producers publish messages to topics, and consumers subscribe to topics to process messages.
Kafka can be implemented using Kafka APIs in Java, Scala, or other programming...
OAuth is an open standard for access delegation, commonly used as a way for Internet users to grant websites or applications access to their information on other websites but without giving them the passwords.
OAuth allows users to grant access to their information on one site to another site without sharing their credentials.
It is commonly used for authentication and authorization in APIs.
OAuth uses tokens to access re...
I applied via Naukri.com
I applied via Naukri.com and was interviewed in Jun 2022. There were 3 interview rounds.
Find the 2nd largest element in an array with the least time complexity.
Sort the array in descending order and return the element at index 1.
Initialize two variables to keep track of the largest and second largest elements.
Iterate through the array and update the variables accordingly.
Return the second largest element.
posted on 2 Apr 2024
I applied via Naukri.com and was interviewed before Apr 2023. There were 2 interview rounds.
I applied via Naukri.com and was interviewed before Jan 2021. There was 1 interview round.
Software Engineer
68
salaries
| ₹4.2 L/yr - ₹10.2 L/yr |
Senior Software Engineer
44
salaries
| ₹9 L/yr - ₹26 L/yr |
Data Processing Executive
41
salaries
| ₹1.7 L/yr - ₹3.4 L/yr |
Quality Analyst
23
salaries
| ₹4 L/yr - ₹8.4 L/yr |
Software Developer
19
salaries
| ₹5 L/yr - ₹12.4 L/yr |
Fractal Analytics
Mu Sigma
Tiger Analytics
LatentView Analytics