單項選擇題

int index = 1;  
String test = new String;  
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

微信掃碼免費搜題