Examveda

What is the primary difference between a `Queue` and a `Deque` in the Java Collections Framework?

A. A `Queue` represents a single-ended queue, while a `Deque` represents a double-ended queue

B. A `Queue` allows duplicate elements, while a `Deque` does not

C. A `Deque` is synchronized, while a `Queue` is not

D. A `Queue` is indexed, while a `Deque` is not

Answer: Option A


This Question Belongs to Java Program >> Collections Framework In Java

Join The Discussion

Related Questions on Collections Framework in java