How does Java\'s reference variable stored? Is that work similar to C pointer?
what I mean by reference variable is myDog in this code
Dog myDog = ne
In general local variables are stored on the stack. Instance variables are stored on the heap.