PPT Slide
For all practical purposes, Java provides only the functionality of an in parameter.
- what an in parameter “really is”, i.e.,
a value is passed in to the called method.
- the called method gets its own copy of the original.
pass-by-constant-reference:
- when the call is made, the current
value of the object is referenced.
- the called module can access that
value but cannot change it... only its temp copy of it can be changed...
Subtle technical difference.
Zero practical difference.