码家

Web Platform, Cloud and Mobile Application Development

  博客园 :: 首页 :: 博问 :: 闪存 :: 新随笔 :: 联系 :: 订阅 订阅 :: 管理 ::

1.Whenever an object is created , memory wil be allocated for the instance variables also.They will be stored in the heap memory along with the object to which they belong

2.Note :Here it is assumed that reference variable declaration is done inside the main() method,hence will be treated as a local variable and memory will be allocated in the stack

3.Garbage Collection

posted on 2011-05-21 15:32  海山  阅读(103)  评论(0)    收藏  举报