5.1 |
What will be the result of attempting to compile and run the following class? public class IfTest { public static void main(String[] args) { if (true) if (false) System.out.println("a"); else System.out.println("b"); } } Select the one correct answer.
|
5.2 |
Which statements are true? Select the three correct answers.
|
5.3 |
What, if anything, is wrong with the following code? void test(int x) { switch (x) { case 1: case 2: case 0: default: case 4: } } Select the one correct answer.
|
5.4 |
Which of these combinations of switch expression types and case label value types are legal within a switch statement? Select the one correct answer.
|