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 7 of 8)
- When should a Java developer choose Heap Operations and Invariants deliberately?Multiple choiceMedium
- In Java, which comparison about Topological Sort is accurate?Multiple choiceEasy
- In Java, which comparison about NIO Files and Path is accurate?Multiple choiceEasy
- When should a Java developer choose Linked List Reversal deliberately?Multiple choiceMedium
- Which practice avoids a common mistake with Singly Linked Lists?Multiple choiceMedium
- When should a Java developer choose Binary Tree Traversals deliberately?Multiple choiceMedium
- In Java, which comparison about Queue Fundamentals is accurate?Multiple choiceEasy
- When should a Java developer choose Design Patterns and SOLID deliberately?Multiple choiceMedium
- In Java, which comparison about Tree Fundamentals is accurate?Multiple choiceEasy
- When should a Java developer choose Prefix Sums on Arrays deliberately?Multiple choiceMedium
- Which practice avoids a common mistake with StringBuilder vs StringBuffer?Multiple choiceMedium
- Which statement about Union-Find and Disjoint Set is the strongest interview answer?Multiple choiceEasy
- In Java, which comparison about Balanced Search Trees is accurate?Multiple choiceEasy
- In Java, which comparison about Binary Search Tree is accurate?Multiple choiceEasy
- Which statement about Stack Fundamentals is the strongest interview answer?Multiple choiceEasy
- Which practice avoids a common mistake with Checked vs Unchecked Exceptions?Multiple choiceMedium
- In Java, which comparison about Prefix Sums on Arrays is accurate?Multiple choiceEasy
- Which practice avoids a common mistake with Stack Fundamentals?Multiple choiceMedium
- In Java, which comparison about Binary Tree Traversals is accurate?Multiple choiceEasy
- Which practice avoids a common mistake with Union-Find and Disjoint Set?Multiple choiceMedium
- Which practice avoids a common mistake with map, flatMap, and reduce?Multiple choiceMedium
- Which statement about Singly Linked Lists is the strongest interview answer?Multiple choiceEasy
- Which statement about Tree Fundamentals is the strongest interview answer?Multiple choiceEasy
- What deeper point about Parallel Streams should a senior Java developer mention?Multiple choiceHard
- What deeper point about Streams Basics should a senior Java developer mention?Multiple choiceHard
- Which practice avoids a common mistake with Primitive Types and Wrappers?Multiple choiceMedium
- Which practice avoids a common mistake with String Immutability?Multiple choiceMedium
- When should a Java developer choose map, flatMap, and reduce deliberately?Multiple choiceMedium
- Which practice avoids a common mistake with Optional?Multiple choiceMedium
- What deeper point about Optional should a senior Java developer mention?Multiple choiceHard
- Which statement about java.time API is the strongest interview answer?Multiple choiceEasy
- Which statement about Class Loading and Initialization is the strongest interview answer?Multiple choiceEasy
- What deeper point about java.time API should a senior Java developer mention?Multiple choiceHard
- When should a Java developer choose Reflection deliberately?Multiple choiceMedium
- What deeper point about Polymorphism, Overloading, and Overriding should a senior Java developer mention?Multiple choiceHard
- Which practice avoids a common mistake with Inheritance vs Composition?Multiple choiceMedium
- What deeper point about Abstraction should a senior Java developer mention?Multiple choiceHard
- When should a Java developer choose Inheritance vs Composition deliberately?Multiple choiceMedium
- Which statement about Interface vs Abstract Class is the strongest interview answer?Multiple choiceEasy
- In Java, which comparison about Inheritance vs Composition is accurate?Multiple choiceEasy
- When should a Java developer choose Polymorphism, Overloading, and Overriding deliberately?Multiple choiceMedium
- When should a Java developer choose Encapsulation deliberately?Multiple choiceMedium
- Which statement about Abstraction is the strongest interview answer?Multiple choiceEasy
- When should a Java developer choose Generics and Wildcards deliberately?Multiple choiceMedium
- Which practice avoids a common mistake with Garbage Collection?Multiple choiceMedium
- Which statement about Generics and Wildcards is the strongest interview answer?Multiple choiceEasy
- Which practice avoids a common mistake with Reflection?Multiple choiceMedium
- When should a Java developer choose Interface vs Abstract Class deliberately?Multiple choiceMedium
- What deeper point about Garbage Collection should a senior Java developer mention?Multiple choiceHard
- When should a Java developer choose Garbage Collection deliberately?Multiple choiceMedium