Hacker News new | ask | show | jobs
by ziml77 1477 days ago
A reference in Java can essentially be thought of as a pointer into a virtual address space. The JVM can move around the location of an object in the system's actual memory, but as far as anything holding reference is concerned nothing has changed.
1 comments

And a reference to an object that's in an array won't be invalidated if that object is moving around the array or even removed entirely. It's still a C concern.