A
Q. What will be the output of the following code?
Code:
enum Day { MONDAY, TUESDAY }
System.out.println(Day.MONDAY.ordinal());
System.out.println(Day.MONDAY.ordinal());
- Correct Answer - Option(B)
- Views: 5
- Filed under category Java
- Hashtags:
Discusssion
Login to discuss.