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

Java认证考试

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

Given the following code:     public class Person{     int arr[] = new int[10];  public static void main(String a[]) {     System.out.println(arr[1]);     }     }  Which statement is correct?() 

  • A、 When compilation some error will occur.
  • B、 It is correct when compilation but will cause error when running.
  • C、 The output is zero.
  • D、 The output is null.
正确答案:A
答案解析:
进入题库查看解析

微信扫一扫手机做题