單項(xiàng)選擇題

int index = 1; 
int [] foo = new int [3]; 
int bar = foo [index]; 
int baz = bar + index;  
What is the result?()  

A. Baz has the value of 0
B. Baz has the value of 1
C. Baz has the value of 2
D. An exception is thrown.
E. The code will not compile.

微信掃碼免費(fèi)搜題