4 ms·
> References in Java are pointers In HotSpot references are double pointers (useful for moving GC), but in general it's up to JVM implementation. Pointers are
by RaleyField 12y ago
> References in Java are pointers
In HotSpot references are double pointers (useful for moving GC), but in general it's up to JVM implementation. Pointers are one form of references, which are usually understood as machine addresses, but not all references have to be pointers.
- jjnoakes 12y agoWe aren't taking about implementation details when we talk about object references being pointers in Java. It is actually the language level terminology that is correct to use absent of any specific implementation. See the JLS.
- deleted 12y ago[deleted]