A股上市公司传智教育(股票代码 003032)旗下技术交流社区北京昌平校区

 找回密码
 加入黑马

QQ登录

只需一步,快速开始


  1.         public static void main(String[] args) throws NoSuchMethodException, SecurityException, IllegalAccessException, IllegalArgumentException, InvocationTargetException {
  2.                 // TODO Auto-generated method stub
  3.                 //Method aMethod=a.class.getMethod("main", String[].class);
  4.                
  5.                 //aMethod.invoke(null, (Object)new String[]{"11"});
  6.                
  7.                 int[] a1=new int[3];
  8.                 int[] a2=new int[]{2,5,3,6};
  9.                 String[] a3=new String[4];
  10.                 int[][] a4=new int[3][4];
  11.                 System.out.println(a1.getClass()==a2.getClass());
  12.                 System.out.println(a1.getClass()==a3.getClass());
  13.                 System.out.println(a3.getClass()==a4.getClass());
  14.                
  15.                
  16.                
  17.         }

  18. }
复制代码


为什么最后 两行会报错,百思不得解

1 个回复

正序浏览
我看看先
回复 使用道具 举报
您需要登录后才可以回帖 登录 | 加入黑马