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)
- In Java, which comparison about Two-Dimensional Arrays is accurate?Multiple choiceEasy
- Which practice avoids a common mistake with Circular Queue and Ring Buffer?Multiple choiceMedium
- Which statement about JDBC and Prepared Statements is the strongest interview answer?Multiple choiceEasy
- In Java, which comparison about String Immutability is accurate?Multiple choiceEasy
- What deeper point about Linked List Reversal should a senior Java developer mention?Multiple choiceHard
- Which statement about Collisions and Load Factor is the strongest interview answer?Multiple choiceEasy
- What deeper point about Hash Tables and Hashing should a senior Java developer mention?Multiple choiceHard
- In Java, which comparison about map, flatMap, and reduce is accurate?Multiple choiceEasy
- When should a Java developer choose Arrays and Indexed Access deliberately?Multiple choiceMedium
- What deeper point about Breadth-First Search should a senior Java developer mention?Multiple choiceHard
- Which statement about Prefix Sums on Arrays is the strongest interview answer?Multiple choiceEasy
- When should a Java developer choose Two-Dimensional Arrays deliberately?Multiple choiceMedium
- Which statement about Top-K with a Heap is the strongest interview answer?Multiple choiceEasy
- What deeper point about Topological Sort should a senior Java developer mention?Multiple choiceHard
- Which statement about StringBuilder vs StringBuffer is the strongest interview answer?Multiple choiceEasy
- Which statement about Parallel Streams is the strongest interview answer?Multiple choiceEasy
- What deeper point about JDBC and Prepared Statements should a senior Java developer mention?Multiple choiceHard
- In Java, which comparison about Depth-First Search is accurate?Multiple choiceEasy
- Which statement about Balanced Search Trees is the strongest interview answer?Multiple choiceEasy
- What deeper point about Checked vs Unchecked Exceptions should a senior Java developer mention?Multiple choiceHard
- When should a Java developer choose Sliding Window on Arrays deliberately?Multiple choiceMedium
- What deeper point about Dynamic Arrays and Resizing should a senior Java developer mention?Multiple choiceHard
- Which statement about Depth-First Search is the strongest interview answer?Multiple choiceEasy
- What deeper point about Prefix Sums on Arrays should a senior Java developer mention?Multiple choiceHard
- What deeper point about Two-Dimensional Arrays should a senior Java developer mention?Multiple choiceHard
- Which practice avoids a common mistake with Depth-First Search?Multiple choiceMedium
- Which practice avoids a common mistake with Collisions and Load Factor?Multiple choiceMedium
- What deeper point about Adjacency List vs Adjacency Matrix should a senior Java developer mention?Multiple choiceHard
- When should a Java developer choose StringBuilder vs StringBuffer deliberately?Multiple choiceMedium
- Which statement about NIO Files and Path is the strongest interview answer?Multiple choiceEasy
- When should a Java developer choose Union-Find and Disjoint Set deliberately?Multiple choiceMedium
- In Java, which comparison about Collisions and Load Factor is accurate?Multiple choiceEasy
- Which practice avoids a common mistake with Adjacency List vs Adjacency Matrix?Multiple choiceMedium
- What deeper point about Fast and Slow Pointers should a senior Java developer mention?Multiple choiceHard
- In Java, which comparison about StringBuilder vs StringBuffer is accurate?Multiple choiceEasy
- Which statement about Dynamic Arrays and Resizing is the strongest interview answer?Multiple choiceEasy
- Which practice avoids a common mistake with Hash Tables and Hashing?Multiple choiceMedium
- Which practice avoids a common mistake with Design Patterns and SOLID?Multiple choiceMedium
- Which statement about Binary Tree Traversals is the strongest interview answer?Multiple choiceEasy
- Which statement about Two-Dimensional Arrays is the strongest interview answer?Multiple choiceEasy
- Which statement about Linked List Reversal is the strongest interview answer?Multiple choiceEasy
- Which statement about Binary Search Tree is the strongest interview answer?Multiple choiceEasy
- In Java, which comparison about Heap Operations and Invariants is accurate?Multiple choiceEasy
- What deeper point about Binary Search Tree should a senior Java developer mention?Multiple choiceHard
- What deeper point about String Immutability should a senior Java developer mention?Multiple choiceHard
- Which practice avoids a common mistake with Fast and Slow Pointers?Multiple choiceMedium
- What deeper point about Singly Linked Lists should a senior Java developer mention?Multiple choiceHard
- What deeper point about Circular Queue and Ring Buffer should a senior Java developer mention?Multiple choiceHard
- When should a Java developer choose Top-K with a Heap deliberately?Multiple choiceMedium
- In Java, which comparison about Streams Basics is accurate?Multiple choiceEasy