Before this program, we have stated that objects name of the class InstanceVar are obj1, obj2 & obj3 respectively (for understanding purpose).But actually, they are not the names but references to objects of InstanceVar type.And actually, they are represented as shown below: