A

Admin • 831.35K Points
Coach

Q. Which Set implementation is ideal when concurrency is required and order matters?

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

Explanation by: Admin
ConcurrentSkipListSet provides thread-safety and maintains sorted order.

You must be Logged in to update hint/solution

Discusssion

Login to discuss.

Be the first to start discuss.