DIGIT-ARC read-only archive · snapshot: July 23, 2026

sequence of garbage collection

3 posts · originally from https://geek.digit.in/community/threads/sequence-of-garbage-collection.123621/

digitalage
digitalage Original post #1
Jan 3, 2010 at 2:46 AM
Hi
I have one doubt .
What if i have 2 objects of the same class created one after the other. Which one is going to be garbage collected first.
-i am not asking when? I am asking about the sequence.

thanks
:?:
????
digitalage
Jan 4, 2010 at 12:46 AM
langugage is java