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
答案解析:有

微信扫一扫手机做题