Java Reference
In-Depth Information
is actually passed to the method. As a result, when you pass this reference to a method,
the parameter that receives it will refer to the same object as that referred to by the argu-
ment. This effectively means that objects are passed to methods by use of call-by-referen-
ce. Changes to the object inside the method do affect the object used as an argument. For
example, consider the following program:
Search WWH ::




Custom Search