Created
June 29, 2010 18:22
-
-
Save syranez/457585 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
Wann wird welche Variable vom GC freigeben? | |
*/ | |
public final class Foo { | |
private JDialog bar = new JDialog(); | |
public static void Main(String[] s) { | |
JDialog xyz = new JDialog(); | |
xyz.show(); | |
// foobar | |
bar.show(); | |
showDialog(); | |
} | |
private final void showDialog() { | |
JDialog foo = new JDialog(); | |
foo.show(); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment