+3 votes
in JAVA by (30.8k points)
I want to re-reach and use an object once it has been garbage collected. Define How it’s possible in Java?

1 Answer

0 votes
by (19.9k points)

Once an object has been destroyed by garbage collector, it no longer exists on the heap and it can’t be accessed again. There is no way to reference it again.

Related questions