Win a copy of Murach's Python Programming this week in the Jython/Python forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Reference Variables  RSS feed

 
prarthana reddy
Ranch Hand
Posts: 48
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,
Where do the reference variables live ? on the stack or on the heap ? I thought they live on heap inside the objects . please clear my doubt
 
Surendra Kumar
Ranch Hand
Posts: 236
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Instance reference variables live on heap.
But local reference variables live on stack.
 
SivaRamiReddy Reddy
Greenhorn
Posts: 4
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Ya..exactly all the instance reference variables live on heap ..
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!