Tuesday, March 16, 2010

Reference Types

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.

No comments:

Post a Comment