Multiple Choice
What is the output of the following Java code?int x = 57;
Int y = 3;switch (x % 9)
{
Case 0:
Case 1:
Y++;
Case 2:
Y = y - 2;
Break;
Case 3:
Y = y + 2;
Case 4:
Break;
Case 5:
Case 6:
Y = y + 3;
}System.out.println(y) ;
A) 2
B) 5
C) 6
D) 57
Correct Answer:

Verified
Correct Answer:
Verified
Q9: Suppose that you have the following statements.
Q16: Suppose that you have the following code.
Q24: In Java, case and switch are reserved
Q25: The output of the Java code: int
Q32: Suppose str1 and str2 are String variables.
Q33: When one control statement is located within
Q41: switch (lastInitial)<br>{<br>Case 'A':<br>System.out.println("section 1");<br>Break;<br>Case 'B':<br>System.out.println("section 2");<br>Break;<br>Case 'C':<br>System.out.println("section
Q42: After the execution of the following code,
Q48: Suppose that you have the following code:int
Q50: The method compareTo is part of the