public class Test {
public static void main(String[] args) throws IOException {
int [] a1 = new int[]{1,2,3};
String [] a4 = new String[]{"a","b","c"};
System.out.println(a1.getClass().equals(a4.getClass()));
// System.out.println(a4.getClass()==a1.getClass());
System.out.println(a4.getClass().getClass()==a1.getClass().getClass());
}
}
红色代码报错 ,得到数组的class对象不是可以运用==来比较的吗 ,为什么会报错???