R
Q. What is the output of the Java program below?
Code:
String college = "OXFORD";
switch("STANFORD")
{
case college: System.out.println("EXAM TIME"); break;
default: System.out.println("UNKNOWN");
}
switch("STANFORD")
{
case college: System.out.println("EXAM TIME"); break;
default: System.out.println("UNKNOWN");
}
- Correct Answer - Option(D)
- Views: 123
- Filed under category JAVA
Discusssion
Login to discuss.