Vidyalelo
Java Programming · Q105

Data Types and Variables

Programming · Java Programming · question 105

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
Answer
B.
1
C.
2
D.
3

Answer: Option A

Solution

Answer: Option A
No explanation is given for this question Let's Discuss on Board