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 3 of 8)
- Which practice avoids a common mistake with TreeSet and NavigableSet?Multiple choiceMedium
- Which practice avoids a common mistake with Comparable vs Comparator?Multiple choiceMedium
- When should a Java developer choose Comparable vs Comparator deliberately?Multiple choiceMedium
- When should a Java developer choose CopyOnWriteArrayList deliberately?Multiple choiceMedium
- What deeper point about ExecutorService, Future, and CompletableFuture should a senior Java developer mention?Multiple choiceHard
- Which statement about LinkedHashMap and Iteration Order is the strongest interview answer?Multiple choiceEasy
- Which practice avoids a common mistake with PriorityQueue and Heap Basics?Multiple choiceMedium
- When should a Java developer choose Deadlocks and Race Conditions deliberately?Multiple choiceMedium
- Which statement about equals() and hashCode() Contract is the strongest interview answer?Multiple choiceEasy
- Which practice avoids a common mistake with Thread Lifecycle and Creation?Multiple choiceMedium
- Which practice avoids a common mistake with HashSet vs TreeSet?Multiple choiceMedium
- Which statement about ConcurrentSkipListMap is the strongest interview answer?Multiple choiceEasy
- What deeper point about equals() and hashCode() Contract should a senior Java developer mention?Multiple choiceHard
- What deeper point about TreeSet and NavigableSet should a senior Java developer mention?Multiple choiceHard
- In Java, which comparison about HashMap Internals is accurate?Multiple choiceEasy
- What deeper point about ConcurrentHashMap and Concurrent Collections should a senior Java developer mention?Multiple choiceHard
- In Java, which comparison about HashSet Membership and Deduplication is accurate?Multiple choiceEasy
- When should a Java developer choose BlockingQueue and Producer-Consumer deliberately?Multiple choiceMedium
- Which statement about Comparable vs Comparator is the strongest interview answer?Multiple choiceEasy
- In Java, which comparison about Java Memory Model, volatile, and synchronized is accurate?Multiple choiceEasy
- Which statement about BlockingQueue and Producer-Consumer is the strongest interview answer?Multiple choiceEasy
- What deeper point about LRU Cache with LinkedHashMap should a senior Java developer mention?Multiple choiceHard
- What deeper point about LinkedHashMap and Iteration Order should a senior Java developer mention?Multiple choiceHard
- When should a Java developer choose equals() and hashCode() Contract deliberately?Multiple choiceMedium
- Which statement about ExecutorService, Future, and CompletableFuture is the strongest interview answer?Multiple choiceEasy
- When should a Java developer choose HashSet Membership and Deduplication deliberately?Multiple choiceMedium
- Which statement about Deadlocks and Race Conditions is the strongest interview answer?Multiple choiceEasy
- Which statement about TreeMap and NavigableMap is the strongest interview answer?Multiple choiceEasy
- In Java, which comparison about Dynamic Arrays and Resizing is accurate?Multiple choiceEasy
- Which statement about Streams Basics is the strongest interview answer?Multiple choiceEasy
- Which practice avoids a common mistake with Balanced Search Trees?Multiple choiceMedium
- Which statement about Checked vs Unchecked Exceptions is the strongest interview answer?Multiple choiceEasy
- Which statement about String Immutability is the strongest interview answer?Multiple choiceEasy
- When should a Java developer choose Circular Queue and Ring Buffer deliberately?Multiple choiceMedium
- In Java, which comparison about Doubly Linked Lists is accurate?Multiple choiceEasy
- When should a Java developer choose Binary Search Tree deliberately?Multiple choiceMedium
- When should a Java developer choose Primitive Types and Wrappers deliberately?Multiple choiceMedium
- Which statement about Circular Queue and Ring Buffer is the strongest interview answer?Multiple choiceEasy
- What deeper point about Sliding Window on Arrays should a senior Java developer mention?Multiple choiceHard
- What deeper point about Arrays and Indexed Access should a senior Java developer mention?Multiple choiceHard
- Which statement about Fast and Slow Pointers is the strongest interview answer?Multiple choiceEasy
- In Java, which comparison about Design Patterns and SOLID is accurate?Multiple choiceEasy
- What deeper point about Monotonic Stack should a senior Java developer mention?Multiple choiceHard
- Which practice avoids a common mistake with Topological Sort?Multiple choiceMedium
- Which practice avoids a common mistake with Sliding Window on Arrays?Multiple choiceMedium
- In Java, which comparison about Fast and Slow Pointers is accurate?Multiple choiceEasy
- In Java, which comparison about Singly Linked Lists is accurate?Multiple choiceEasy
- In Java, which comparison about Circular Queue and Ring Buffer is accurate?Multiple choiceEasy
- Which practice avoids a common mistake with Trie and Prefix Tree?Multiple choiceMedium
- Which statement about Breadth-First Search is the strongest interview answer?Multiple choiceEasy