class SingleTon {
	static final SingleTon instance = new SingleTon();
	private SingleTon() {
		// 초기화
	}
	public SingleTon getInstance() {
		return instance;
	}
}

public class TestCode {
	public static void main(String[] args) {
		SingleTon a = SingleTon.getInstance();
		SingleTon b = SingleTon.getInstance();
		System.out.println(a == b); // true
	}
}