Is it possible to write a java program to listout all the interfaces and classes?
I do not think any JDK provide such method , but you can try File class which reads javadocs directory , which list all the files which included into Jdk
doc directory ,
I am providing a jdk 5 doc directory structure , a which find you all the classes and interfaces !! " F:\jdk-6-doc\docs\api\java " , this is definitely not a optimum solution , but as you need it , this ll help !!