Skip to main content

Learning Resources

Top 50 Interview MCQ

Learning resource for Top 50 Interview MCQ in the Java tutorial — designed like the C and C++ course resources, focused on interview prep, revision, and projects.

Practice Test

Top 50 Java Interview MCQ

Pick an option, then press Show Answer to check yourself.

Attempted: 0 · Correct: 0 · Wrong: 0

Q1. JVM stands for:

Q2. JDK compared with JRE includes:

Q3. String s1 = "hi"; String s2 = "hi"; s1 == s2 is usually:

Q4. s.equals(t) compares:

Q5. Java String objects are:

Q6. Which is a checked exception?

Q7. A checked exception must be:

Q8. Interface vs abstract class — interfaces (Java 8+) can have:

Q9. An abstract class can have:

Q10. HashMap allows:

Q11. ArrayList provides:

Q12. LinkedList is typically better than ArrayList for:

Q13. HashSet stores:

Q14. t.start() vs t.run() — start():

Q15. Generics give you:

Q16. A static method can access:

Q17. final on a class means:

Q18. final on a variable means:

Q19. Overloading is resolved at:

Q20. Overriding is resolved at:

Q21. Default (package) access is visible to:

Q22. Java source compiles to:

Q23. int vs Integer:

Q24. Autoboxing converts:

Q25. StringBuilder is preferred over String when:

Q26. Which collection is a Map?

Q27. HashMap average get/put is:

Q28. TreeMap keys must be:

Q29. fail-fast iterators throw ConcurrentModificationException when:

Q30. equals and hashCode must:

Q31. Comparable vs Comparator:

Q32. synchronized on a method locks:

Q33. volatile guarantees:

Q34. wait() must be called:

Q35. join() on a thread:

Q36. A deadlock happens when:

Q37. throw vs throws:

Q38. finally runs:

Q39. Java supports multiple inheritance of:

Q40. this refers to:

Q41. super() in a constructor:

Q42. Method hiding applies to:

Q43. Object’s default equals compares:

Q44. Garbage collection reclaims:

Q45. Stack vs heap in Java:

Q46. A functional interface has:

Q47. Optional is meant to:

Q48. Stream operations like map/filter are:

Q49. The entry point of a Java application is:

Q50. Interview-safe definition of polymorphism: