Thanks for the reply. Here is the code.
1) When we say java TreeSetMain.class and the class is loaded by a system classloader, what will be the content of
a)Method Area...namely constant pool, field information,method information,information of the classloader.
2)Since there is only one main thread, how does stack frame for main method and initAnotherDataStructure interact with the method area and heap?
3) Those jvms which have method tables, how is the information stored?