Q. What is the output of this program?
Code:enum Color {
Bleu, Rouge, Vert, Blanc
};
System.out.println(Color.Bleu.ordinal());
β
Correct Answer: (A)
0
Explanation: The ordinal() method allows you to find the sequence number of an element defined in Enum.