• Post Reply Bookmark Topic Watch Topic
  • New Topic

Please explain this code  RSS feed

 
Gagan Sabharwal
Ranch Hand
Posts: 48
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,

Can somebody guide me through a simple java program which reads a class file and prints an output which shows what parts of a program goes into which section of a runtime data areas?

 
Paul Clapham
Sheriff
Posts: 22844
43
Eclipse IDE Firefox Browser MySQL Database
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Probably. If the program isn't too long, you could post it here and ask questions about it.

By the way I changed the title of your post. "JVM" isn't a good description of your question and (more importantly) it isn't going to persuade anybody to look at the post.
 
Gagan Sabharwal
Ranch Hand
Posts: 48
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Paul,

Thanks for the reply. Here is the code.




Questions
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.
b)Heap

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?
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!