R

Ram Sharma • 3.40K Points
Extraordinary

Q. Which collection uses natural ordering or a provided Comparator?

  • (A) HashSet
  • (B) ArrayList
  • (C) TreeSet
  • (D) Vector
  • Correct Answer - Option(C)
  • Views: 14
  • Filed under category Java
  • Hashtags:

Explanation by: Ram Sharma
`TreeSet` uses natural ordering or a custom comparator.

You must be Logged in to update hint/solution

Discusssion

Login to discuss.

Be the first to start discuss.