Core Java Interview Notes
1. OOP Concepts: Encapsulation, Inheritance, Polymorphism, Abstraction.
2. JVM, JRE, JDK: JVM executes bytecode, JRE provides runtime environment, JDK provides
development tools.
3. Data Types: Primitive and Non-Primitive.
4. String, StringBuilder, StringBuffer differences.
5. Arrays vs ArrayList.
6. Collections Framework: List, Set, Map.
7. HashMap vs HashSet.
8. Exception Handling: try, catch, finally, throw, throws.
9. Multithreading and Synchronization.
10. Constructors and Types of Constructors.
11. Static and Final Keywords.
12. Interface vs Abstract Class.
13. Method Overloading vs Overriding.
14. Java 8 Features: Lambda Expressions and Stream API.
15. Garbage Collection.
Important Interview Questions
• What is Java and why is it platform independent?
• Explain OOP concepts with examples.
• Difference between HashMap and Hashtable.
• What is the difference between == and equals()?
• How does HashMap work internally?
• Explain String Pool.
• What is deadlock?