Question: #2 & #3 int y- 8; if (x > 9) if (y > 8) else System.out.printIn(X 9 and y > 8; System.out.println(x>9 and y>8); b,
int y- 8; if (x > 9) if (y > 8) else System.out.printIn("X 9 and y > 8; System.out.println("x>9 and y>8"); b, x= 7; d. None of the above 2. Analyze the following code: if (number> 0) System.out.println(number); System.out.println(number); always printed out at least o a. b. number is printed out twice if number is zero; c. number is printed out once if number is negative. d. All of the above. What is y after the following switch statement? int x 0; switch (x + 1) 3. int y 0 case 0: y 0; break; case 1 : y-1; break; default: y--1 a
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
