Friday, 22 April 2016

What is Priority Queue in Java ?


What is Priority Queue in Java ?
  • An unbounded queue
  • based on a priority heap
  • Elements are ordered in their natural order (Comparator can also be used)
  • null values are not allowed
  • Not thread-safe

No comments:

Post a Comment

Note: only a member of this blog may post a comment.