File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

why instance variable on heap?

 
Arun Maalik
Ranch Hand
Posts: 216
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic