• Post Reply Bookmark Topic Watch Topic
  • New Topic

variables in java  RSS feed

 
sitaram irrinki
Ranch Hand
Posts: 158
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
i have doubt pls clarify it sir
u told that instance variables r stored in heapspace and local variables are store in stack space then wat abt static variables
 
k matt
Greenhorn
Posts: 22
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I believe its stored in the method area.In addition to this the jvm has the following run time data areas like heap, pc register, java stack and native method stacks. Anything related to class data is stored in Method Area.If you find out the other way, please let me know

Matt
[ October 12, 2005: Message edited by: k matthew ]
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!