Prev Next

Java / Queue and its implementations

List few Queue implementations.

LinkedList, ArrayDeque, PriorityQueue, and BlockingQueue types such as ArrayBlockingQueue implement Queue. ArrayDeque is the usual non-concurrent default.

LinkedList implements the Queue interface, providing first in, first out (FIFO) queue operations

The PriorityQueue class is a priority queue based on the heap data structure. This queue orders elements according to the order specified at construction time.

java.util.concurrent package contains a set of synchronized Queue interfaces and classes. More information can be found here.

More Related questions...

Show more question and Answers...


Comments & Discussions