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

  • (A) getEnum()
  • (B) getEnumList()
  • (C) getEnums()
  • (D) getEnumConstants()
πŸ’¬ Discuss
βœ… 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.
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.

πŸ’¬ Discussion


πŸ“Š Question Analytics

πŸ‘οΈ
225
Total Visits
πŸ“½οΈ
4 y ago
Published
πŸŽ–οΈ
Admin
Publisher
πŸ“ˆ
84%
Success Rate