Here is the list of 100 Java interview questions
- What is Java?
- What are the key features of Java?
- What is the difference between JDK, JRE, and JVM?
- What is a class in Java?
- What is an object in Java?
- What is the difference between a class and an object?
- What is inheritance in Java?
- What is polymorphism in Java?
- What is encapsulation in Java?
- What is abstraction in Java?
- What is a constructor in Java?
- What is the purpose of the main() method in Java?
- What is the final keyword in Java?
- What is static keyword in Java?
- What is an interface in Java?
- What is an abstract class in Java?
- What is a package in Java?
- What is a string in Java?
- What is a StringBuffer in Java?
- What is a StringBuilder in Java?
- What is the difference between StringBuffer and StringBuilder in Java?
- What is an array in Java?
- What is an ArrayList in Java?
- What is a LinkedList in Java?
- What is a Map in Java?
- What is a Set in Java?
- What is the difference between a List and a Set in Java?
- What is a Iterator in Java?
- What is a Comparator in Java?
- What is a Thread in Java?
- What is synchronization in Java?
- What is the difference between wait() and sleep() methods in Java?
- What is the difference between notify() and notifyAll() methods in Java?
- What is a deadlock in Java?
- What is the purpose of the synchronized keyword in Java?
- What is a try-catch block in Java?
- What is an exception in Java?
- What is the difference between checked and unchecked exceptions in Java?
- What is the purpose of throw keyword in Java?
- What is the purpose of throws keyword in Java?
- What is the difference between final, finally, and finalize in Java?
- What is the purpose of the super keyword in Java?
- What is the purpose of the this keyword in Java?
- What is a lambda expression in Java?
- What is a functional interface in Java?
- What is a stream in Java?
- What is a lambda expression in Java?
- What is the difference between filter() and map() methods in Java?
- What is the difference between a stream and a collection in Java?
- What is the difference between findFirst() and findAny() methods in Java?
- What is the purpose of Optional class in Java?
- What is the difference between imperative and declarative programming in Java?
- What is the purpose of the @Override annotation in Java?
- What is a reflection in Java?
- What is the purpose of the getClass() method in Java?
- What is a ClassLoader in Java?
- What is a jar file in Java?
- What is a war file in Java?
- What is a servlet in Java?
- What is a JSP in Java?
- What is a JDBC in Java?
- What is a connection pool in Java?
- What is a prepared statement in Java?
- What is the difference between a Statement and a PreparedStatement in Java?
- What is a Hibernate in Java?
- What is a JPA in Java?
- What is a Spring framework in Java?
- What is the purpose of @Autowired annotation in Java?
- What is the purpose of @Transactional annotation in Java?
- What is the purpose of @RequestMapping annotation in Java?
- What is the difference between @PathVariable and @RequestParam annotations in Java?
- What is a Bean in Spring framework?
- What is a dependency injection in Spring framework?
- What is the difference between constructor injection and setter injection in Spring framework?
- What is a scope in Spring framework?
- What is the purpose of @Component annotation in Spring framework?
- What is the purpose of @Configuration annotation in Spring framework?
- What is the purpose of @Service annotation in Spring framework?
- What is the purpose of @Repository annotation in Spring framework?
- What is the purpose of @Controller annotation in Spring framework?
- What is AOP in Spring framework?
- What is the purpose of @Aspect annotation in Spring framework?
- What is a proxy object in Spring framework?
- What is a transaction in Spring framework?
- What is a join point in AOP?
- What is a pointcut in AOP?
- What is an advice in AOP?
- What is a weaving in AOP?
- What is a CGLIB in Spring framework?
- What is a JUnit in Java?
- What is the purpose of @Test annotation in JUnit?
- What is a Mockito in Java?
- What is the purpose of @Mock annotation in Mockito?
- What is the purpose of @InjectMocks annotation in Mockito?
- What is a Maven in Java?
- What is a Gradle in Java?
- What is a Jenkins in Java?
- What is a SonarQube in Java?
- What is a JMeter in Java?
- What is a SOAP in Java?
I hope these 100 Java interview questions will help you prepare well for your Java interview. Good luck!