Back to Tech Interviews

Java & Spring Boot Interview

Curated 20+ questions covering Java OOP, JVM garbage collection, Spring IoC/DI, Spring Boot configurations, and JPA/Hibernate.

Total: 20 QuestionsLearned: 0 / 20 (0%)
Difficulty Filters

Tools & Options
Showing 20 of 20 questions
Beginner
What are the core principles of Object-Oriented Programming (OOP)?
Beginner
What is Spring Boot, and how does it differ from the Spring Framework?
Intermediate
Explain Dependency Injection (DI) and Inversion of Control (IoC).
Beginner
What are the different ways to inject dependencies in Spring?
Intermediate
What is Spring Boot Auto-configuration, and how does it work?
Beginner
What is Spring Boot Actuator?
Beginner
What is the difference between `@Component`, `@Service`, and `@Repository` annotations?
Intermediate
Explain Spring Bean Scopes.
Intermediate
What is Hibernate, and how does it relate to JPA?
Beginner
What is the difference between `@RestController` and `@Controller`?
Beginner
What is the Spring Boot Starter?
Intermediate
How do you handle exceptions globally in Spring Boot?
Intermediate
Explain Lazy Loading vs Eager Loading in Hibernate/JPA.
Advanced
What is the N+1 select problem in Hibernate, and how do you resolve it?
Advanced
Explain the garbage collection process in Java.
Intermediate
What is the difference between `HashMap` and `ConcurrentHashMap` in Java?
Advanced
Explain Spring AOP (Aspect-Oriented Programming).
Intermediate
What is the use of the `@Transactional` annotation?
Advanced
What is the Spring Cloud, and when is it used?
Beginner
Explain the Java 8 Stream API.