怎么证明是,呵呵,java跟delphi一样,所有的类都是从TOject(delphi)/Oject(java)下来的

解决方案 »

  1.   

    String[]  aa = new String[3];
        System.out.println("Hashcode:"+((Object)aa).hashCode());
       
        System.out.print("Implements interfaces:");
        Class cls[] = aa.getClass().getInterfaces();   
        for(int i=0;i<cls.length;i++)
        System.out.print("'"+cls[i]+"',");
       
        System.out.println("\naa.getClass().getPackage()="+aa.getClass().getPackage());讨论数组有父与无父并没有太大的意义
      

  2.   

    int[] ia = new int[3];
    System.out.println(ia.getClass());
    System.out.println(ia.getClass().getSuperclass());