单项选择题

运行以下代码: public class TestDogs{ public static void main(String[] args){ Dog[][] theDogs = new Dog[3][]; System.out.println(theDogs[2][0].toString()); } } class Dog{ } 运行结果是( )。

A、null
B、theDogs
C、编译出错
D、抛出一个异常
相关考题