I am curious how many classes are there in Java standard library. Perhaps someone knows an approximate number?
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.