单项选择题
A. x = 0
B. x = 42
C. Compilation fails because of an error in line 2 of class Test2.
D. Compilation fails because of an error in line 3 of class Test1.
E. Compilation fails because of an error in line 4 of class Test2.
多项选择题 public interface Foo { int k = 4; 3. } Which three are equivalent to line 2?()
单项选择题 public class Test { public static void aMethod() throws Exception { try { throw new Exception(); } finally { System.out.println(“finally”); } } public static void main(String args[]) { try { aMethod(); } catch (Exception e) { System.out.println(“exception”); } System.out.println(“finished”); } } What is the result?()
单项选择题 int x = 3; int y = 1; if (x = y) { System.out.println(“x = “ + x); } What is the result? ()