A

Admin • 832.27K Points
Coach

Q. Can EnumSet be empty?

  • (A) No
  • (B) Yes, using EnumSet.noneOf()
  • (C) Yes, using EnumSet.clear()
  • (D) Only if using TreeMap
  • Correct Answer - Option(B)
  • Views: 15
  • Filed under category Java
  • Hashtags: Java Set

Explanation by: Admin

EnumSet.noneOf() returns an empty EnumSet of the specified enum type.

You must be Logged in to update hint/solution

Discusssion

Login to discuss.

Be the first to start discuss.