This week's book giveaway is in the Jobs Discussion forum.
We're giving away four copies of Customer Requirements for Developers and have Marcho Behler on-line!
See this thread for details.
The moose likes Programmer Certification (SCJP/OCPJP) and the fly likes Reference Variables Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Customer Requirements for Developers this week in the Jobs Discussion forum!
JavaRanch » Java Forums » Certification » Programmer Certification (SCJP/OCPJP)
Bookmark "Reference Variables" Watch "Reference Variables" New topic

Reference Variables

prarthana reddy
Ranch Hand

Joined: Jul 24, 2006
Posts: 48
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

Joined: Jul 04, 2006
Posts: 236
Instance reference variables live on heap.
But local reference variables live on stack.
SivaRamiReddy Reddy

Joined: Aug 14, 2006
Posts: 4
Ya..exactly all the instance reference variables live on heap ..
subject: Reference Variables
It's not a secret anymore!