单项选择题

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

相关考题