posted 21 years ago
it doesn't. at least, not like you're probably thinking.
references to objects are probably implemented using pointers, but you don't have access to the pointer value, you can't do pointer arithmatic, you can't replace array names with pointers...
primitive variables store the value in question.
any object variable does store a reference to the heap where the object is actually created, but for all intents and purposes, you can't do anything with the pointer yourself - except use it to get to the actual object.
at least, that's my understanding.
There are only two hard things in computer science: cache invalidation, naming things, and off-by-one errors