试题详情
单项选择题 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.

  • B
  • 关注下方微信公众号,在线模考后查看

热门试题