Java 1.6的类库中有多少个类阿?
知道的告诉一下,谢谢

解决方案 »

  1.   

    打开你的api ..  首页进去.点那个树..                                就可以数了..我是没数过..呵呵.
      

  2.   

    在 JDK 6 中有 202 个包,3777 个类、接口、异常、枚举、注释和错误。下面是方法的统计数量,只能是个大概的数量,可能计算有误。但是类和包的数量是确定的。 类中的方法:25043
    接口中的方法:4664
    错误中的方法:69
    异常中的方法:1169
    枚举中的方法:115其中:构造方法:4802
       静态方法:2397构造方法和静态方法都是其中的,并不是单独的。所有的方法数合计:25043 + 4664 + 69 + 1169 + 115 = 31060 个 
      

  3.   


    The javadoc for 1.4.2 (the public api) contains documentation for 2723 classes in 135 packages.
    there's 12695 classfiles in the 1.5.0 rt.jar which contains most if not all of the runtime library.That includes all inner classes and classes that are otherwise not directly accessible.