When is an object subject to garbage collection | Eklavya Online

When is an object subject to garbage collection

An object is subject to garbage collection when it becomes unreachable to the program in which it is used.