R

Ram Sharma • 3.40K Points
Extraordinary

Q. Which collection class maintains insertion order?

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

Explanation by: Ram Sharma
`LinkedHashSet` maintains insertion order unlike `HashSet`.

You must be Logged in to update hint/solution

Discusssion

Login to discuss.

Be the first to start discuss.