Google News
logo
Java Collections - Interview Questions
Explain various types of queues in Java
There are three types of queues in Java :
 
Priority queue : It is a special type of Queue wherein elements are sorted as per their natural ordering or custom comparator.
Circular Queue : It is a type of Queue in which user operations are performed based on the FIFO method. The last element is connected to the first position in order to make a circle.
Double-ended Queue : A double-ended queue is an abstract data type that generalizes a queue. The elements in this queue can be added or removed from either head or tail.
Advertisement