4 ms·
Ah, gotcha. Honestly, I always use this as an example of one of the subtle design points that I really appreciate Java for. Nitpick, but saying copies in Java
by kjeetgill 7y ago
Ah, gotcha. Honestly, I always use this as an example of one of the subtle design points that I really appreciate Java for.
Nitpick, but saying copies in Java can get confusing. Both primitives and references are bound by value. I'm sure you know, but for others: no objects are copied.
I always found this limitation had reassuring regularity; it's the same way arguments are bound to function parameters (minus bring final). Local variables being isolated from "other scopes" means that any interthread communication must be mediated through objects.