A

Admin • 828.03K Points
Coach

Q. Which interface must elements implement to be used in PriorityQueue?

  • (A) Comparable
  • (B) Runnable
  • (C) Serializable
  • (D) Iterable
  • Correct Answer - Option(A)
  • Views: 15
  • Filed under category Java
  • Hashtags: Java Queue

Explanation by: Admin
Elements must implement `Comparable` or be inserted with a custom Comparator.

You must be Logged in to update hint/solution

Discusssion

Login to discuss.

Be the first to start discuss.