如题

解决方案 »

  1.   

    java基本数据类型的数组不继承任何类吧
      

  2.   

    查看了java.lang 包,可以看到没有基本数据类型的类文件。可是在反射里面我们可以使用这个的
    Class cls=Class.forName("某一类的类名");
    Method method = cls.getMethod(methodName,new Class[]{short[].class});
    基本类型的都是这么写 int.class ,int[].class,
    而包装类型的写成java.lang.Integer.class Integer[].class
    由于历史原因,数组不能使用classforName();