看张老师的视频,在高新技术视频24讲中,有个没看懂的地方
有如下定义,其中Object[] obj3 = a1;是编译错误的,请哪位大侠帮忙解释一下
int [] a1 = new int[3];
int [] a2 = new int[4];
int[][] a3 = new int[2][3];
String [] a4 = new int[3];
Object obj1 = a1;
Object obj2 = a4;
Object[] obj3 = a1; //编译错误
Object [] obj4 = a3;
Object [] obj5 = a4; |