- To print the elements of an array in the decreasing frequency. If two numbers have the same frequency, then print the one which came first. Using Java 8
int[] arr = {4, 5, 6, 5, 4, 3, 6, 4, 6, 5};
output: 4 4 4 5 5 5 6 6 6 3 - We have two tables in our database: 'users' and 'orders'. The 'users' table has columns 'id', 'username', 'email', while the 'orders' table has 'id', 'user_id', 'product', 'price'.
a. Fetch all users who haven't made any orders.
b. Fetch the user and the number of orders they have made. - ACID properties
- Transaction isolation levels, like different transaction isolation levels that we commonly interact with in SQL?
- How to optimize the SQL query?
- Stored procedures and Triggers
- Hibernate advantages over others
- FetchType.Eager, FetchType.Lazy
- One-To-One & Many-To-Many Relationships example
- Cascade types
- How can we do external configurations in Spring Boot?
- Handling exceptions in Spring Boot Applications
- Profile annotations
- About NoSQL database
- About Kafka
- Consumer groups in kakfka and it's advantages
- Offset in kakfka
- What are the different types of testing strategies?
- TDD and BDD
- @InjectMob
- Mock vs Spy
- Mockito.verify()
- Circuit Breaker Pattern
- Saga Design Pattern
- Can you explain me how have you handled Distributed Tracing in your microservices?
- How microservices communicate with each other?
- About Swagger?
- Richardson Maturity Model?
- REST API versioning
- Difference between @PathVariable & @RequestParam
- Difference between PUT and PATCH
- Best practices to followed while using REST APIs
- What is CORS?
- IOC and Dependency Inversion
- Life cycle of Bean in Spring Boot Application
- Difference between Thread and Runnable?
- ExecutorService
- Runnable and Callable interface
- How to make application thread-safe?
- Java Memory Model(JMM) and Garbage Collector
- Memory leaks in Garbage Collector
Interview went for 1 hour 45 minutes straight.
Comments (1)


