Q105
What will be the output of the following Java code? enum Season WINTER, SPRING, SUMMER, FALL ; System.out.println(Season.WINTER.ordinal());
A.
0
AnswerB.
1
C.
2
D.
3
Answer: Option A
Solution
Answer: Option A
No explanation is given for this question Let's Discuss on Board