3 ms·
C# does (via ref parameters) but Java does not - any values you mutate must logically live in the heap (or a static). Some JIT optimization may allocate an ins
by barrkel 8y ago
C# does (via ref parameters) but Java does not - any values you mutate must logically live in the heap (or a static).
Some JIT optimization may allocate an instance in the stack, I'm not counting that.