I am curious how many classes are there in Java standard library. Perhaps someone knows an approximate number?
By counting entries in the 'all classes' frame of the javadoc API:
4569
in java 144545
in java 134433
in java 124411
in java 116002
in java 106005
in java 94240
in java 84024
in java 73793
in java 63279
in java 5.02723
in java 1.4.2*1840
in java 1.3.1** Javadocs prior to 5.0 are now offline.
According to the API documentation 3793 including abstract classes and interfaces.
I counted 17,338 in Java 6.0. My methodology:
jar -tf ${JAVA}/jre/lib/rt.jar > rtjar.txt
emacs rtjar.txt
I deleted two lines related to the manifest (and thus not representing a class). I believe that the other lines all refer to classes, but I did not do an exhaustive check. Then I went to the bottom of the file and emacs told me that there 17,338 lines.
This includes stuff like: java/io/ObjectOutputStream$1.class.