[디자인 패턴] 싱글톤 구현

public class MySingleton { private static MySingleton instance; private MySingleton(){} public static synchronized MySingleton getInstance(){ // 경합조건 해결을 위해 synchronized 추가 if(instance == null){ instance = new MySingleton(); } return...