Object vs Reference in Java

obj is a Reference to an instance of MyClass.

Currently, that Reference is NULL because you haven’t assigned it to refer to any instance.

Technically MyClass must be a subclass of Object, so it is possible to say that obj is a Reference to an instance of Object as well.

Leave a Comment