Primitive vs Reference Types in Java: The Mental Model I Wish I Had Earlier
When I started learning Java, I thought I understood the difference between primitive and reference types.
The explanation seemed simple:
Primitives store values. Reference types store references to
ashwath.hashnode.dev8 min read