A
Q. What is the output of this program?
enum Color { Bleu, Rouge, Vert, Blanc }; System.out.println(Color.Bleu.ordinal());
The ordinal() method allows you to find the sequence number of an element defined in Enum.
You must be Logged in to update hint/solution
Discusssion
Login to discuss.