A

Admin • 833.24K Points
Coach

Q. What is the default ordering used by Java’s PriorityQueue?

  • (A) Insertion order
  • (B) Natural order
  • (C) Custom order
  • (D) Reverse order
  • Correct Answer - Option(B)
  • Views: 24
  • Filed under category Java
  • Hashtags: Java Queue

Explanation by: Admin

By default, PriorityQueue uses natural ordering of the elements.

You must be Logged in to update hint/solution

Discusssion

Login to discuss.

Be the first to start discuss.