Q. Which method returns the elements of the Enum class?
β
Correct Answer: (D)
getEnumConstants()
Explanation: The method getEnumConstants() returns the elements of the class enum or null if the object of the Class does not represent an enum type.