D Dhruva Jagannath • 660 Points Invincible Report Q. What does the `ordinal()` method of an enum return? (A) The name of the constant (B) The position of the constant in the enum declaration (C) The hashcode of the constant (D) The string value of the enum Correct Answer - Option(B) Views: 3 Filed under category Java Hashtags: Java Enums Share Manage Tags
Discusssion
Login to discuss.