What is the output produced by the following code?
int key = 1;
switch (key + 1)
{
case 1:
System.out.println("Apples");
break;
case 2:
System.out.println("Oranges");
case 3:
System.out.println("Peaches");
case 4:
System.out.println("Plums");
default:
System.out.println("Fruitless");
}
Already registered? Login
Not Account? Sign up
Enter your email address to reset your password
Back to Login? Click here