A

Admin • 828.03K Points
Coach

Q. Which method returns the elements of the Enum class?

  • (A) getEnum()
  • (B) getEnumList()
  • (C) getEnums()
  • (D) getEnumConstants()
  • Correct Answer - Option(D)
  • Views: 19
  • Filed under category Java
  • Hashtags:

Explanation by: Admin
The method getEnumConstants() returns the elements of the class enum or null if the object of the Class does not represent an enum type.

You must be Logged in to update hint/solution

Discusssion

Login to discuss.

Be the first to start discuss.