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)
- When should a Java developer choose java.time API deliberately?Multiple choiceMedium
- Which practice avoids a common mistake with Abstraction?Multiple choiceMedium
- Which practice avoids a common mistake with Interface vs Abstract Class?Multiple choiceMedium
- Which statement about Optional is the strongest interview answer?Multiple choiceEasy
- Which practice avoids a common mistake with Class Loading and Initialization?Multiple choiceMedium
- In Java, which comparison about Abstraction is accurate?Multiple choiceEasy
- Which statement about Annotations is the strongest interview answer?Multiple choiceEasy
- What deeper point about Annotations should a senior Java developer mention?Multiple choiceHard
- In Java, which comparison about Annotations is accurate?Multiple choiceEasy
- What deeper point about Encapsulation should a senior Java developer mention?Multiple choiceHard
- Which practice avoids a common mistake with NIO Files and Path?Multiple choiceMedium
- When should a Java developer choose NIO Files and Path deliberately?Multiple choiceMedium
- What deeper point about Reflection should a senior Java developer mention?Multiple choiceHard
- Which practice avoids a common mistake with Annotations?Multiple choiceMedium
- In Java, which comparison about Optional is accurate?Multiple choiceEasy
- In Java, which comparison about Garbage Collection is accurate?Multiple choiceEasy
- Which practice avoids a common mistake with java.time API?Multiple choiceMedium
- In Java, which comparison about Reflection is accurate?Multiple choiceEasy
- Which practice avoids a common mistake with Encapsulation?Multiple choiceMedium
- In Java, which comparison about Polymorphism, Overloading, and Overriding is accurate?Multiple choiceEasy
- In Java, which comparison about Class Loading and Initialization is accurate?Multiple choiceEasy
- When should a Java developer choose Abstraction deliberately?Multiple choiceMedium
- What deeper point about Generics and Wildcards should a senior Java developer mention?Multiple choiceHard
- Which statement about Garbage Collection is the strongest interview answer?Multiple choiceEasy
- In Java, which comparison about Type Erasure is accurate?Multiple choiceEasy
- Which statement about Reflection is the strongest interview answer?Multiple choiceEasy
- Which practice avoids a common mistake with Type Erasure?Multiple choiceMedium
- In Java, which comparison about Encapsulation is accurate?Multiple choiceEasy
- Which statement about Inheritance vs Composition is the strongest interview answer?Multiple choiceEasy
- When should a Java developer choose Type Erasure deliberately?Multiple choiceMedium
- When should a Java developer choose Class Loading and Initialization deliberately?Multiple choiceMedium
- What deeper point about Type Erasure should a senior Java developer mention?Multiple choiceHard
- In Java, which comparison about Heap vs Stack is accurate?Multiple choiceEasy
- Which practice avoids a common mistake with Heap vs Stack?Multiple choiceMedium
- In Java, which comparison about Generics and Wildcards is accurate?Multiple choiceEasy
- When should a Java developer choose Annotations deliberately?Multiple choiceMedium
- What deeper point about Class Loading and Initialization should a senior Java developer mention?Multiple choiceHard
- Which practice avoids a common mistake with Generics and Wildcards?Multiple choiceMedium
- What deeper point about Heap vs Stack should a senior Java developer mention?Multiple choiceHard
- Which practice avoids a common mistake with Polymorphism, Overloading, and Overriding?Multiple choiceMedium
- What deeper point about Inheritance vs Composition should a senior Java developer mention?Multiple choiceHard
- Which statement about Heap vs Stack is the strongest interview answer?Multiple choiceEasy
- Which statement about Polymorphism, Overloading, and Overriding is the strongest interview answer?Multiple choiceEasy
- Which statement about Encapsulation is the strongest interview answer?Multiple choiceEasy
- In Java, which comparison about Interface vs Abstract Class is accurate?Multiple choiceEasy
- In Java, which comparison about java.time API is accurate?Multiple choiceEasy
- What deeper point about Interface vs Abstract Class should a senior Java developer mention?Multiple choiceHard
- When should a Java developer choose Optional deliberately?Multiple choiceMedium
- Which statement about Type Erasure is the strongest interview answer?Multiple choiceEasy
- When should a Java developer choose Heap vs Stack deliberately?Multiple choiceMedium