A

Admin • 832.52K Points
Coach

Q. Which Set implementation is best suited when ordering and quick search are both important?

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

Explanation by: Admin

TreeSet maintains ordering and supports logarithmic time operations.

You must be Logged in to update hint/solution

Discusssion

Login to discuss.

Be the first to start discuss.