A

Admin • 833.24K Points
Coach

Q. Which Set implementation should be used when elements are enums?

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

Explanation by: Admin

EnumSet is specifically designed for use with enum types.

You must be Logged in to update hint/solution

Discusssion

Login to discuss.

Be the first to start discuss.