Question: what is the difference between reference instance and object in java?
Answer: The objects are created in the heap area and, the reference obj just points out to the object of the Student class in the heap, i.e. it just holds the memory address of the object (in the heap). ... In short, object is an instance of a class and reference (variable) points out to the object created in the heap area.