Section: Java Programmer

Question 37 of 40


37) What is the result of executing the following code when the value of x is 2:

switch (x) {

case 1:
System.out.println(1);
case 2:
case 3:
System.out.println(3);
case 4:
System.out.println(4);