In object C, it is likely that two different links may point to each other.
But is this possible in Java? I mean, can two object references refer to each other? If possible, when are they going to collect trash?
And, in the case of nested classes, two objects (inner class and outer class) are related to each other - how are these garbage objects collected?
java
Sai chaithanya
source share