Vidyalelo
Java Programming · Q13

Java Collections Framework

Programming · Java Programming · question 13

Q13

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
Answer
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

Solution

Answer: Option A
No explanation is given for this question Let's Discuss on Board