
Obtaining a Reference to an Object
In Java, you can obtain a reference to an object in three ways. First, you can obtain it from the new operation. The new operation instantiates an object of a particular class, and returns a reference to it. This reference is a handle to the location where the object resides