Java Queue

The Queue interface of the Java collections framework provides the functionality of the queue data structure. It extends the Collection interface. Since the Queue is an interface, we cannot provide the direct implementation of it. In order to use the functionality of Queue, we need to use classes that implement it:

  1. ArrayDeque
  2. LinkedList
  3. PriorityQueue



Subsections