public interface Foo { int k = 4; 3. } Which three are equivalent to line 2?()
A. final int k = 4; B. public int k = 4; C. static int k = 4; D. abstract int k = 4; E. volatile int k = 4; F. protected int k = 4;
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?()
A. finally B. exception finished C. finally exception finished D. Compilation fails.
int x = 3; int y = 1; if (x = y) { System.out.println(“x = “ + x); } What is the result? ()
A.x=1 B.x=3 C.Compilation fails. D.The code runs with no output.  E.An exception is thrown at runtime.