Queue Interface

  • Used to represent a group of individual objects where all objects are present prior to processing.
  • Queue is the child interface of collection.
  • Queue Interface and all its implementation classes came in java 1.5 into collections.

Implementation Classes for Queue :

  • PriorityQueue
  • BlockingQueue
    • LinkedBlockingQueue
    • PriorityBlockingQueue

Features of Queue :

  • When we need to implement logic in first in first out (FIFO) methodology.

Leave a Comment