Java Reference
In-Depth Information
Figure 20
Copying Object References
55
56
There is a reason for the difference between numbers and objects. In the computer,
each number requires a small amount of memory. But objects can be very large. It is
far more efficient to manipulate only the memory location.
Frankly speaking, most programmers don't worry too much about the difference
between objects and object references. Much of the time, you will have the correct
intuition when you think of Ȓthe object boxȓ rather than the technically more accurate
Ȓthe object reference stored in boxȓ. The difference between objects and object
Search WWH ::




Custom Search