Posts

Showing posts from 2025

Springboot Interview Question

  ♦️ Spring & Spring Boot 6️⃣ Difference between @Controller, @RestController and @ControllerAdvice. 7️⃣ How do you implement global exception handling in Spring Boot? 8️⃣ How do you configure multiple data sources in a Spring Boot application? 9️⃣ How to secure REST APIs using JWT or OAuth2 in Spring Boot? πŸ”Ÿ How do you implement caching in Spring Boot (Redis / Caffeine)? 6. How does Spring manage circular dependencies? 7. Difference between @Bean, @Component, @Service, @Repository. When do you prefer each? 8. How do you implement global exception handling in Spring Boot REST APIs? 9. How do you configure asynchronous execution in Spring Boot? 10. If your Spring Boot app is consuming high memory in production, how would you debug it? πŸ”Ή Microservices & Design 11. How do you handle data consistency across microservices without distributed transactions? 12. Explain the Saga pattern with an example. 13. How do you secure microservices communication? (JWT, OAuth2, API Gateway)...

Java Interview Question

  First Round 1.Why did you choose Java? 2.What are the features of Java? 3.What does “platform independent” mean? 4.What is the the difference between the == operator and the equals() method? 5.What is compile-time polymorphism? 6.What is OOP / what are the principles of OOP? 7.Are Collection, Set, List, Queue classes or interfaces? 8.What is the difference between List, Set, and Queue? 9.What is a Map in the collections framework? 10.What is the difference between HashMap and Hashtable? 11.What algorithms (or data structures) underlie the Java Collection framework? 12.If you have a large amount of data (e.g. millions of entries) and you need to perform update operations, which collection is most suitable? 13.What is the difference between arrays and collections? 14.What are varargs (variable arguments)? 15.What is the difference between String and StringBuffer? 16.If we create an object of a class, where is it stored (in memory)? 17.What is the DROP command in SQL? 18.What is the...