Java Interview Questions for 5–6 LPA (With Short
Answers)
Core Java Basics
• What is JVM, JRE, and JDK?
• Why Java is platform independent?
• What are access modifiers?
• Difference between == and equals()
• What is pass-by value in Java?
OOP Concepts
• What is encapsulation?
• Difference between abstraction and encapsulation
• What is inheritance?
• What is polymorphism?
• Can we achieve multiple inheritance in Java?
Collections Framework
• Difference between ArrayList and LinkedList
• Difference between HashMap and HashSet
• How does HashMap work internally?
• Difference between HashMap and Hashtable
• What is ConcurrentHashMap?
Exception Handling
• Difference between checked and unchecked exceptions
• What is try-catch-finally?
• Difference between throw and throws
• Can we have multiple catch blocks?
Strings & Memory
• Why String is immutable?
• Difference between String, StringBuilder, and StringBuffer
• What is string pool?
• What is garbage collection?
Multithreading (Basic)
• What is a thread?
• Difference between process and thread
• What is synchronization?
• Difference between sleep() and wait()?
Miscellaneous
• What is static keyword?
• What is final keyword?
• Difference between abstract class and interface
• What are annotations?
How to prepare:
• Prepare short and clear answers (2–4 lines)
• Be ready with examples
• These questions are frequently asked in 5–6 LPA interviews