A

Admin • 828.03K Points
Coach

Q. Which class implements a Set that uses a red-black tree for ordering?

  • (A) HashSet
  • (B) EnumSet
  • (C) TreeSet
  • (D) LinkedHashSet
  • Correct Answer - Option(C)
  • Views: 12
  • Filed under category Java
  • Hashtags: Java Set

Explanation by: Admin
TreeSet uses a red-black tree to maintain sorted order.

You must be Logged in to update hint/solution

Discusssion

Login to discuss.

Be the first to start discuss.