Created
April 18, 2017 18:38
-
-
Save electrum/9ee8acf5f3d5c5a588ac220bc3e5de18 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
public final class ClassInitializer | |
{ | |
private final String name; | |
public ClassInitializer() | |
{ | |
System.out.println(name); | |
} | |
{ | |
name = "hello"; | |
} | |
private void run() | |
{ | |
System.out.println(name); | |
} | |
public static void main(String[] args) | |
{ | |
new ClassInitializer().run(); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment