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.

More related questions

Questions Bank

View all Questions