单项选择题
A. Finally
B. Compilation fails.
C. The code runs with no output.
D. An exception is thrown at runtime.
多项选择题 Whichthreeformpartofcorrectarraydeclarations?()
单项选择题 public class SwitchTest { public static void main(String[] args) { System.out.println(“value = “ + switchIt(4)); } public static int switchIt(int x) { int j = 1; switch (x) { case 1: j++; case 2: j++; case 3: j++; case 4: j++; case 5: j++; default: j++; } return j + x; } } What is the result?()
单项选择题 int i = 0; for (; i <4; i += 2) { System.out.print(i + “”); } System.out.println(i); What is the result?()