Java Basic

Object reference variable

views

12:03
These are created as per the needs of the programmer. These variables are used to refer to an object and that is why they are called reference variables. They are declared to be of a specific type. It is use to access objects in a class. Objects are the instances of the classes created in the Java program or predefined classes of the program.