I'm just preparing for the scjp/ocp and in the chapter about the inner classes (
SCJP Sun Certified Programmer for
Java 6 Study Guide I, p. 670) there is this code example:
I understand all lines, but my question is: It's right that the inner object will be carbage collected (but with no garantee) after the method doStuff() completes?