单项选择题
A. The code compiles and “s=” is printed.
B. The code compiles and “s=null” is printed.
C. The code does not compile because string s is not initialized.
D. The code does not compile because string s cannot be referenced.
E. The code compiles, but a NullPointerException is thrown when toString is called.
单项选择题 int index = 1; int [] foo = new int [3]; int bar = foo [index]; int baz = bar + index; What is the result?()
单项选择题 public class test( public static void main(string[]args){ string foo = args [1]; string foo = args [2]; string foo = args [3]; } ) And command line invocation: Java Test red green blue What is the result?()
单项选择题 int index = 1; boolean[] test = new Boolean[3]; boolean foo= test [index]; What is the result?()