C Shinde wrote:If I run this from command prompt can someone tell me how many classes are loaded before this class is run? We can consider JDK 1.4 and also JDK 1.5.
That's very hard to say, there is no simple way to find this out. To find out, try running the program with a profiler, which might be able to show you this information. JDK 1.5 contained a simple profiling tool,
JConsole, and JDK 1.6 contains a more sophisticated tool,
JVisualVM.