摘要:
public class SyncObj { private static SyncObj obj = null; private SyncObj(){ } public static SyncObj getIns(){ if(obj==null){ System.out.println("obj=null"); obj = new SyncObj(); return obj; } return obj; } public synchronized void say(){ System.out.println("hello world.."); } }= 阅读全文
posted @ 2012-06-13 17:12
tomcat and jerry
阅读(2227)
评论(0)
推荐(0)