摘要: 实现线程安全单例模式的两种方式: 1.双重检查+同步:public class Singleton{ private volatile static singletonInstance; private Singleton(){} public ... 阅读全文
posted @ 2016-03-11 18:16 sunp823 阅读(115) 评论(0) 推荐(0) 编辑