50 Common Java Coding Interview Questions
- What is Java?
- What are the main features of Java?
- What is the difference between JDK, JRE, and JVM?
- What is OOP?
- What is the difference between abstract class and interface?
- What is inheritance?
- What is polymorphism?
- What is encapsulation?
- What is the difference between private, protected, and public access modifiers?
- What is a static method?
- What is a final class?
- What is a final variable?
- What is the difference between == and equals() method?
- What is the difference between checked and unchecked exceptions?
- What is a Java package?
- What is a Java classpath?
- What is a constructor?
- What is a garbage collector?
- What is a thread?
- What is synchronization?
- What is a volatile variable?
- What is a transient variable?
- What is a static block?
- What is the difference between StringBuffer and StringBuilder?
- What is a lambda expression?
- What is the difference between anonymous class and lambda expression?
- What is a functional interface?
- What is a stream in Java 8?
- What is the difference between stream and collection?
- What is the difference between map() and flatMap() methods in Java 8?
- What is the difference between parallelStream() and stream() in Java 8?
- What is a default method in Java 8?
- What is a method reference?
- What is the diamond problem in Java?
- What is a singleton class?
- What is the difference between an ArrayList and a LinkedList?
- What is the difference between a HashSet and a TreeSet?
- What is the difference between a HashMap and a TreeMap?
- What is the difference between an inner class and a nested class?
- What is a reflection in Java?
- What is a proxy in Java?
- What is a JAXB?
- What is JDBC?
- What is Hibernate?
- What is Spring Framework?
- What is a design pattern in Java?
- What is the difference between fail-fast and fail-safe iterators?
- What is the difference between C++ and Java?
- What is a JIT compiler?
- What is the difference between a stack and a queue?