aspose file tools
The moose likes Programmer Certification (SCJP/OCPJP) and the fly likes why instance variable on heap? Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login
JavaRanch » Java Forums » Certification » Programmer Certification (SCJP/OCPJP)
Reply Bookmark "why instance variable on heap?" Watch "why instance variable on heap?" New topic
Author

why instance variable on heap?

Arun Maalik
Ranch Hand

Joined: Oct 25, 2005
Posts: 216
Dear sir would you please explain me that why

---->Instance variable and object live on heap?
----->Local variable and method live on stack?

As we know that heap created on run time wheras stack form on compile time and i think that instance variable and object form on run time where as local variable and method form on compile time. I think due to this but i am not sure so please specify me.


Thanks

Arun kumar maalik
 
I agree. Here's the link: http://ej-technologies/jprofiler - if it wasn't for jprofiler, we would need to run our stuff on 16 servers instead of 3.
 
subject: why instance variable on heap?
 
Similar Threads
K&B - Statement, Cannot understand
Reference Variables on the stack
Garbage collection
Method local inner classes
why stack or heap why not any one