Created
September 21, 2015 04:24
-
-
Save choiseungho/9ebf362a02c794c460d3 to your computer and use it in GitHub Desktop.
public final field를 이용한 싱글턴 패턴
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 class SingletonPatternEx1 { | |
//public final field를 이용한 싱글턴 패턴 | |
public static final SingletonPatternEx1 INSTANCE = new SingletonPatternEx1(); | |
private SingletonPatternEx1() { | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment