单项选择题

int index = 1; 
boolean[] test = new Boolean[3]; 
boolean foo= test [index];  
What is the result?()  

A. Foo has the value of 0.
B. Foo has the value of null.
C. Foo has the value of true.
D. Foo has the value of false.
E. An exception is thrown.
F. The code will not compile.

相关考题