Object is an occupied memory for a class. Reference points to that memory and it has got a name (you can call it as a variable). For example,
A a = new A();
here when we write "new A();" some memory will be occupied in the system.
'a' is the reference(variable) which points to this memory and is used to access the data present in this memory.
A a = new A();
here when we write "new A();" some memory will be occupied in the system.
'a' is the reference(variable) which points to this memory and is used to access the data present in this memory.