试题详情
单项选择题 public class Test {  private static int[] x;  public static void main(String[] args) {  System.out.println(x[0]);  }  }   What is the result?()   

A、 0

B、 null

C、 Compilation fails.

D、 A NullPointerException is thrown at runtime.

E、 An ArrayIndexOutOfBoundsException is thrown at runtime.

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

热门试题