aspose file tools*
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 EJB 3 in Action this week in the EJB and other Java EE Technologies forum!
JavaRanch » Java Forums » Certification » Programmer Certification (SCJP/OCPJP)
Bookmark "Reference Variables" Watch "Reference Variables" New topic
Author

Reference Variables

prarthana reddy
Ranch Hand

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

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

Joined: Aug 14, 2006
Posts: 4
Ya..exactly all the instance reference variables live on heap ..
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Reference Variables
 
Similar Threads
Reference Variables on the stack
References variables
where variable and objects are stored
static variables in multithreading
Garbage collection