Java Reference
In-Depth Information
This declares that someMeth( ) returns an array of type int .
Because both forms of array declarations are in widespread use, both are used in this
book.
Assigning Array References
As with other objects, when you assign one array reference variable to another, you are
simply changing what object that variable refers to. You are not causing a copy of the array
to be made, nor are you causing the contents of one array to be copied to the other. For
example, consider this program:
Search WWH ::




Custom Search