I know what both are, value and reference, but my question is why do both exist?
I mean why all primitives aren't also reference (or treated as such)? I know the primitives aren't affected by garbage collector, which i see as a drawback, and I can't find any pros to them, so what am I missing?