September 2011
Beginner
650 pages
15h 47m
English
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:


The output from the program is shown here:

As the output shows, after the assignment of nums1 to nums2, both array reference ...
Read now
Unlock full access