View Single Post
  #2 (permalink)  
Old 08-07-2007, 01:00 AM
Jack Jack is offline
Senior Member
 
Join Date: Jun 2007
Posts: 130
Jack is on a distinguished road
Object occupies a range of memory, say, from address n to m.

Reference is a variable, may be 32 bit size, who has value n.
Code:
MyObject mo = new MyObject();
If mo object is laid on memory from address n, then the reference mo's value would be n.

Reference mo, a 32 bit data, itself may be put on address p.
Reply With Quote