A reference – type variable does not contain data itself; it actually contains the memory address of the data. The variables itself lives on the stack, like a value – type variable, but points to its data that lives on the heap. The variable itself lives on stack, like a value – type variable, but points to its data that lives on the heap.
Note: - The heap is the region in memory that stores the data pointed to by the reference – type variables.
Tuesday, March 16, 2010
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment