If an object reference is set to null, will the Garbage Collector immediately free the memory held by that object ?
3 years ago
OOP Java
No, the object will be available for garbage collection in the next cycle of the garbage collector.

Surya Bikram Bhandari
Oct 31, 2021