Home » JAVA Programming » Basic Datatypes » Question
  1. Which method returns the elements of Enum class?
    1. getEnums()
    2. getEnum()
    3. getEnumConstants()
    4. getEnumList()
    5. None of these
Correct Option: C

getEnumConstants() returns the elements of this enum class or null if this Class object does not represent an enum type.



Your comments will be displayed only after manual approval.