摘要:
懒加载,线程不安全 public class Singleton { private static Singleton instance; private Singleton(){} public static Singleton getInstance(){ if(instance == null){ instance = new Singleton(); } return insta... 阅读全文
posted @ 2017-02-15 09:42
RocketMan
阅读(160)
评论(0)
推荐(0)