A

Admin • 832.52K Points
Coach

Q. Which queue class in Java implements Comparable elements by priority?

  • (A) PriorityQueue
  • (B) ConcurrentLinkedQueue
  • (C) LinkedBlockingQueue
  • (D) Deque
  • Correct Answer - Option(A)
  • Views: 29
  • Filed under category Java
  • Hashtags: Java Queue

Explanation by: Admin

`PriorityQueue` orders elements according to natural order or a provided comparator.

You must be Logged in to update hint/solution

Discusssion

Login to discuss.

Be the first to start discuss.