單項(xiàng)選擇題

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.

微信掃碼免費(fèi)搜題