A
Q. What is the output of the following code?
Code:
enum Color { RED, GREEN, BLUE }
System.out.println(Color.RED.name());
System.out.println(Color.RED.name());
- Correct Answer - Option(B)
- Views: 10
- Filed under category Java
- Hashtags:
Discusssion
Login to discuss.