public class SingletonTest { private static SingletonTest stTest = null; public static SingletonTest getInstance() { if( stTest == null ){ stTest = new SingletonTest(); } return stTest; } public static void main(String[] args) { SingletonTest tmpInstance = SingletonTest.getInstance(); } } * public static synchronized SingletonTest getInstance() { //이렇게 하면 한번에 하나만 실행된..