A

Admin • 828.03K Points
Coach

Q. Which queue implementation gives highest-priority element first?

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

Explanation by: Admin
`PriorityQueue` reorders elements based on their natural or specified comparator order.

You must be Logged in to update hint/solution

Discusssion

Login to discuss.

Be the first to start discuss.