A
Q. What is the output of the below Java program with arrays?
Code:
String[] colors = {"RED";"YELLOW";"WHITE"};
System.out.print(colors[2]);
System.out.print(colors[2]);
- Correct Answer - Option(D)
- Views: 12
- Filed under category Java
- Hashtags:
Discusssion
Login to discuss.