4 ms·
No, Java makes no such distinction in passing. Java does have values which are not object pointers, but, just like object pointers, they are passed by value, an
by colanderman 9y ago
No, Java makes no such distinction in passing. Java does have values which are not object pointers, but, just like object pointers, they are passed by value, and behave exactly the same as an immutable object in either language.