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 6 of 8)

  1. In Java, which comparison about Two-Dimensional Arrays is accurate?Multiple choiceEasy
  2. Which practice avoids a common mistake with Circular Queue and Ring Buffer?Multiple choiceMedium
  3. Which statement about JDBC and Prepared Statements is the strongest interview answer?Multiple choiceEasy
  4. In Java, which comparison about String Immutability is accurate?Multiple choiceEasy
  5. What deeper point about Linked List Reversal should a senior Java developer mention?Multiple choiceHard
  6. Which statement about Collisions and Load Factor is the strongest interview answer?Multiple choiceEasy
  7. What deeper point about Hash Tables and Hashing should a senior Java developer mention?Multiple choiceHard
  8. In Java, which comparison about map, flatMap, and reduce is accurate?Multiple choiceEasy
  9. When should a Java developer choose Arrays and Indexed Access deliberately?Multiple choiceMedium
  10. What deeper point about Breadth-First Search should a senior Java developer mention?Multiple choiceHard
  11. Which statement about Prefix Sums on Arrays is the strongest interview answer?Multiple choiceEasy
  12. When should a Java developer choose Two-Dimensional Arrays deliberately?Multiple choiceMedium
  13. Which statement about Top-K with a Heap is the strongest interview answer?Multiple choiceEasy
  14. What deeper point about Topological Sort should a senior Java developer mention?Multiple choiceHard
  15. Which statement about StringBuilder vs StringBuffer is the strongest interview answer?Multiple choiceEasy
  16. Which statement about Parallel Streams is the strongest interview answer?Multiple choiceEasy
  17. What deeper point about JDBC and Prepared Statements should a senior Java developer mention?Multiple choiceHard
  18. In Java, which comparison about Depth-First Search is accurate?Multiple choiceEasy
  19. Which statement about Balanced Search Trees is the strongest interview answer?Multiple choiceEasy
  20. What deeper point about Checked vs Unchecked Exceptions should a senior Java developer mention?Multiple choiceHard
  21. When should a Java developer choose Sliding Window on Arrays deliberately?Multiple choiceMedium
  22. What deeper point about Dynamic Arrays and Resizing should a senior Java developer mention?Multiple choiceHard
  23. Which statement about Depth-First Search is the strongest interview answer?Multiple choiceEasy
  24. What deeper point about Prefix Sums on Arrays should a senior Java developer mention?Multiple choiceHard
  25. What deeper point about Two-Dimensional Arrays should a senior Java developer mention?Multiple choiceHard
  26. Which practice avoids a common mistake with Depth-First Search?Multiple choiceMedium
  27. Which practice avoids a common mistake with Collisions and Load Factor?Multiple choiceMedium
  28. What deeper point about Adjacency List vs Adjacency Matrix should a senior Java developer mention?Multiple choiceHard
  29. When should a Java developer choose StringBuilder vs StringBuffer deliberately?Multiple choiceMedium
  30. Which statement about NIO Files and Path is the strongest interview answer?Multiple choiceEasy
  31. When should a Java developer choose Union-Find and Disjoint Set deliberately?Multiple choiceMedium
  32. In Java, which comparison about Collisions and Load Factor is accurate?Multiple choiceEasy
  33. Which practice avoids a common mistake with Adjacency List vs Adjacency Matrix?Multiple choiceMedium
  34. What deeper point about Fast and Slow Pointers should a senior Java developer mention?Multiple choiceHard
  35. In Java, which comparison about StringBuilder vs StringBuffer is accurate?Multiple choiceEasy
  36. Which statement about Dynamic Arrays and Resizing is the strongest interview answer?Multiple choiceEasy
  37. Which practice avoids a common mistake with Hash Tables and Hashing?Multiple choiceMedium
  38. Which practice avoids a common mistake with Design Patterns and SOLID?Multiple choiceMedium
  39. Which statement about Binary Tree Traversals is the strongest interview answer?Multiple choiceEasy
  40. Which statement about Two-Dimensional Arrays is the strongest interview answer?Multiple choiceEasy
  41. Which statement about Linked List Reversal is the strongest interview answer?Multiple choiceEasy
  42. Which statement about Binary Search Tree is the strongest interview answer?Multiple choiceEasy
  43. In Java, which comparison about Heap Operations and Invariants is accurate?Multiple choiceEasy
  44. What deeper point about Binary Search Tree should a senior Java developer mention?Multiple choiceHard
  45. What deeper point about String Immutability should a senior Java developer mention?Multiple choiceHard
  46. Which practice avoids a common mistake with Fast and Slow Pointers?Multiple choiceMedium
  47. What deeper point about Singly Linked Lists should a senior Java developer mention?Multiple choiceHard
  48. What deeper point about Circular Queue and Ring Buffer should a senior Java developer mention?Multiple choiceHard
  49. When should a Java developer choose Top-K with a Heap deliberately?Multiple choiceMedium
  50. In Java, which comparison about Streams Basics is accurate?Multiple choiceEasy