If an object reference is set to null, will the Garbage Collector immediately free the memory held by that object ?

1 year 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

Top