A
Q. What is the output of the Java program below?
Code:
String animal = "GOAT";
switch(animal)
{
break: System.out.println("DOMESTIC");
}
switch(animal)
{
break: System.out.println("DOMESTIC");
}
- Correct Answer - Option(D)
- Views: 24
- Filed under category Java
- Hashtags:
Discusssion
Login to discuss.