A
Q. What will be the output of the following Java code?
enum Season
{
WINTER, SPRING, SUMMER, FALL
};
System.out.println(Season.WINTER.ordinal());
- Correct Answer - Option(A)
- Views: 16
- Filed under category Java
- Hashtags:
Discusssion
Login to discuss.