Assume Outer
is instantiated somewhere, and after a while there are no references to it. Does the implicit reference in inner
to the Outer
instance prevent GC from running, or does the is it a "special" reference?
public class Outer {
private class Inner extends Something {}
private Inner inner = new Inner();
}