Java / Garbage collection
If an object reference is set to null, will the GC immediately free the memory held by that object ?
No, the object will be available for garbage collection only in the next cycle of the garbage collector.
More Related questions...