O'Reilly logo
  • Aadil Hussain thinks this is interesting:

An instance is dereferenced by reassignment when a variable is either explicitly set to null or is assigned another instance or reference variable.


Cover of OCA Java SE 8 Programmer I Certification Guide


3 way to dereference an instance 1. asssign null value 2.assign another instance 3.assign reference variable