下面的程序会抛出什么异常类型?public class Test { public static void main(String[] args) { Object o = null; System.out.println(o.toString()); }}
选项:
A:ArrayIndexOutOfBoundsException;
B:StringIndexOutOfBoundsException;
C:ClassCastException;
D:NullPointerException
发布时间:2024-05-13 15:58:22