当Java应用程序试图在需要对象的地方使用null时,抛出()异常。
A.ClassCastException
B.ArithmeticException
C.ArrayIndexOutOfBoundException
D.NullPointerException
正确答案:D
猜你喜欢