public interface Foo{ int k = 4; } Which three are equivalent to line 2?()
A. Final int k = 4; B. Public int k = 4; C. Static int k = 4; D. Private int k = 4; E. Abstract int k = 4; F. Volatile int k = 4;
int index = 1; String [] test = new String[3]; String foo = test[index]; What is the result?()
A. Foo has the value “” B. Foo has the value null C. An exception is thrown D. The code will not compile
public class Test { public static void main (String[]args) { String foo = args[1]; String bar = args[2]; String baz = args[3]; System.out.printIn(“baz = ” + baz); } } And the output: Baz = 2 Which command line invocation will produce the output?()
A. Java Test 2222 B. Java Test 1 2 3 4 C. Java Test 4 2 4 2 D. Java Test 4 3 2 1