Java Spring Interview Guide (1)
Java Spring Interview Guide (1)
✅ Java Basics
✅ Collections
✅ Exception Handling
1
2. How to create a custom exception?
3. What happens if you catch only Exception ?
4. Can we have multiple catch blocks?
5. Difference between throw and throws ?
6. What is the use of finally block?
7. Can finally block override a return statement?
8. How to handle exceptions in lambda expressions?
9. What is the purpose of try-with-resources?
10. What happens if an exception is not caught?
✅ Java 8 Features
✅ JVM Internals
✅ Design Patterns
2
2. Explain Factory Design Pattern with an example.
3. What is the Builder pattern and where is it used?
4. Difference between Strategy and State patterns?
5. What is the Observer pattern?
6. What are the SOLID principles?
7. Explain Dependency Injection as a pattern.
8. What is the Template Method Pattern?
9. Difference between Adapter and Decorator patterns?
10. Explain MVC architecture in Java.
✅ Unit Testing