3 ms·
Java has no notion of "taking the address of an object" because you never have an expression that refers to an object directly. You only have the addresses, so
by jjnoakes 12y ago
Java has no notion of "taking the address of an object" because you never have an expression that refers to an object directly. You only have the addresses, so there's no need (or way) to convert objects to their address.
And it's all pass by value (for all values you could have - numbers, addresses, booleans, whatever).