Java Interview Questions
💡 Click any question to read the full AI-powered answer.
Q21
What is exception handling in Java?
Generate
→
Q22
What is the difference between checked and unchecked exceptions?
✓ Answered
→
Q23
What is try-with-resources?
✓ Answered
→
Q24
Explain garbage collection in Java.
✓ Answered
→
Q25
What is the difference between heap and stack memory?
Generate
→
Q26
What are Java 8 features?
✓ Answered
→
Q27
Explain lambda expressions in Java.
✓ Answered
→
Q28
What is Stream API in Java?
✓ Answered
→
Q29
What is Optional in Java?
✓ Answered
→
Q30
Explain functional interfaces.
✓ Answered
→
Q31
What is Comparator vs Comparable?
✓ Answered
→
Q32
What is serialization in Java?
✓ Answered
→
Q33
What is transient keyword?
✓ Answered
→
Q34
What are annotations in Java?
✓ Answered
→
Q35
What is reflection in Java?
✓ Answered
→
Q36
What is the difference between throw and throws?
✓ Answered
→
Q37
Explain volatile keyword in Java.
✓ Answered
→
Q38
What is the use of static keyword?
✓ Answered
→
Q39
What is immutability in Java?
✓ Answered
→
Q40
How does HashMap work internally?
✓ Answered
→