Java + OOP + Core + Spring Boot Interview
Questions (Intern Level)
1. Java Basics:
- What are the main features of Java?
- Difference between JDK, JRE, and JVM?
- What is the difference between == and equals()?
- Explain the concept of garbage collection in Java.
- What are access modifiers in Java?
2. OOP Concepts:
- What is the difference between abstraction and encapsulation?
- Explain inheritance with an example.
- What is polymorphism in Java? Give examples.
- What are interfaces in Java? How are they different from abstract classes?
- What is the concept of constructor overloading?
3. Core Java:
- What is a static keyword in Java?
- Explain the difference between ArrayList and LinkedList.
- What is the difference between HashMap and Hashtable?
- What is multithreading in Java?
- Explain the use of the final keyword in Java.
4. Spring Boot:
- What is Spring Boot and why is it used?
- Difference between Spring and Spring Boot?
- What is dependency injection in Spring Boot?
- Explain @RestController annotation.
- What is the use of [Link] file?
- How does Spring Boot auto-configuration work?
- What is the difference between @Component, @Service, and @Repository?
- Explain the concept of Spring Boot Starter.
- How do you connect Spring Boot with a database?
- What is the role of Spring Data JPA in Spring Boot?