Skip to content
Sharp

Java Interview Questions interview questions

Collections • ArrayDeque as a Queue, Collections • ArrayDeque as a Stack, Collections • ArrayList vs LinkedList, Collections • Comparable vs Comparator, Collections • HashMap Internals, Collections • HashSet Membership and Deduplication

400 questions with answers and explanations

Questions (page 8 of 8)

  1. When should a Java developer choose java.time API deliberately?Multiple choiceMedium
  2. Which practice avoids a common mistake with Abstraction?Multiple choiceMedium
  3. Which practice avoids a common mistake with Interface vs Abstract Class?Multiple choiceMedium
  4. Which statement about Optional is the strongest interview answer?Multiple choiceEasy
  5. Which practice avoids a common mistake with Class Loading and Initialization?Multiple choiceMedium
  6. In Java, which comparison about Abstraction is accurate?Multiple choiceEasy
  7. Which statement about Annotations is the strongest interview answer?Multiple choiceEasy
  8. What deeper point about Annotations should a senior Java developer mention?Multiple choiceHard
  9. In Java, which comparison about Annotations is accurate?Multiple choiceEasy
  10. What deeper point about Encapsulation should a senior Java developer mention?Multiple choiceHard
  11. Which practice avoids a common mistake with NIO Files and Path?Multiple choiceMedium
  12. When should a Java developer choose NIO Files and Path deliberately?Multiple choiceMedium
  13. What deeper point about Reflection should a senior Java developer mention?Multiple choiceHard
  14. Which practice avoids a common mistake with Annotations?Multiple choiceMedium
  15. In Java, which comparison about Optional is accurate?Multiple choiceEasy
  16. In Java, which comparison about Garbage Collection is accurate?Multiple choiceEasy
  17. Which practice avoids a common mistake with java.time API?Multiple choiceMedium
  18. In Java, which comparison about Reflection is accurate?Multiple choiceEasy
  19. Which practice avoids a common mistake with Encapsulation?Multiple choiceMedium
  20. In Java, which comparison about Polymorphism, Overloading, and Overriding is accurate?Multiple choiceEasy
  21. In Java, which comparison about Class Loading and Initialization is accurate?Multiple choiceEasy
  22. When should a Java developer choose Abstraction deliberately?Multiple choiceMedium
  23. What deeper point about Generics and Wildcards should a senior Java developer mention?Multiple choiceHard
  24. Which statement about Garbage Collection is the strongest interview answer?Multiple choiceEasy
  25. In Java, which comparison about Type Erasure is accurate?Multiple choiceEasy
  26. Which statement about Reflection is the strongest interview answer?Multiple choiceEasy
  27. Which practice avoids a common mistake with Type Erasure?Multiple choiceMedium
  28. In Java, which comparison about Encapsulation is accurate?Multiple choiceEasy
  29. Which statement about Inheritance vs Composition is the strongest interview answer?Multiple choiceEasy
  30. When should a Java developer choose Type Erasure deliberately?Multiple choiceMedium
  31. When should a Java developer choose Class Loading and Initialization deliberately?Multiple choiceMedium
  32. What deeper point about Type Erasure should a senior Java developer mention?Multiple choiceHard
  33. In Java, which comparison about Heap vs Stack is accurate?Multiple choiceEasy
  34. Which practice avoids a common mistake with Heap vs Stack?Multiple choiceMedium
  35. In Java, which comparison about Generics and Wildcards is accurate?Multiple choiceEasy
  36. When should a Java developer choose Annotations deliberately?Multiple choiceMedium
  37. What deeper point about Class Loading and Initialization should a senior Java developer mention?Multiple choiceHard
  38. Which practice avoids a common mistake with Generics and Wildcards?Multiple choiceMedium
  39. What deeper point about Heap vs Stack should a senior Java developer mention?Multiple choiceHard
  40. Which practice avoids a common mistake with Polymorphism, Overloading, and Overriding?Multiple choiceMedium
  41. What deeper point about Inheritance vs Composition should a senior Java developer mention?Multiple choiceHard
  42. Which statement about Heap vs Stack is the strongest interview answer?Multiple choiceEasy
  43. Which statement about Polymorphism, Overloading, and Overriding is the strongest interview answer?Multiple choiceEasy
  44. Which statement about Encapsulation is the strongest interview answer?Multiple choiceEasy
  45. In Java, which comparison about Interface vs Abstract Class is accurate?Multiple choiceEasy
  46. In Java, which comparison about java.time API is accurate?Multiple choiceEasy
  47. What deeper point about Interface vs Abstract Class should a senior Java developer mention?Multiple choiceHard
  48. When should a Java developer choose Optional deliberately?Multiple choiceMedium
  49. Which statement about Type Erasure is the strongest interview answer?Multiple choiceEasy
  50. When should a Java developer choose Heap vs Stack deliberately?Multiple choiceMedium