|
DarkTwilkitri is correct. java is passing a pointer (er, "reference"). it's just an integer. yes, it is passing the value of the pointer that is a reference to the object (which is what passing by reference means).
caution, your professor may be an idiot.
|