多做题,通过考试没问题!

Java认证考试

睦霖题库>其他计算机考试>Java认证考试

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.
正确答案:D
答案解析:
进入题库查看解析

微信扫一扫手机做题