A

Admin • 828.03K Points
Coach

Q. Which of the following is TRUE about EnumSet?

  • (A) It can store null elements
  • (B) It stores values in random order
  • (C) It is not type-safe
  • (D) It stores values in natural order of enum constants
  • Correct Answer - Option(D)
  • Views: 3
  • Filed under category Java
  • Hashtags: Java Set

Explanation by: Admin
EnumSet stores elements in the order in which enum constants are declared.

You must be Logged in to update hint/solution

Discusssion

Login to discuss.

Be the first to start discuss.