R

Ram Sharma • 3.40K Points
Extraordinary

Q. Which collection class implements a queue with natural ordering?

  • (A) ArrayDeque
  • (B) PriorityQueue
  • (C) LinkedList
  • (D) HashSet
  • Correct Answer - Option(B)
  • Views: 10
  • Filed under category Java
  • Hashtags:

Explanation by: Ram Sharma
`PriorityQueue` orders elements based on natural ordering or a comparator.

You must be Logged in to update hint/solution

Discusssion

Login to discuss.

Be the first to start discuss.