java.util.Stack is the modern preferred stack implementation for most new Java code.

Practice this question from Quiz: Collection Comparisons, with options and an explanation.

Question

java.util.Stack is the modern preferred stack implementation for most new Java code.

Option A

True

ArrayDeque is faster and avoids legacy Stack/Vector synchronization overhead.

Option B — Correct answer

False

ArrayDeque is faster and avoids legacy Stack/Vector synchronization overhead.

Quiz: Collection Comparisons

All questions · Previous question · Next question

Open on QuizMaker