摘要: /** * 单例模式懒汉式(双重检锁线程安全。JDK1.5之后) */ public class Singleton { private static volatile Singleton singleton = null; private Singleton(){} public static Singleton getInstance(){ ... 阅读全文
posted @ 2018-09-05 11:47 DreamPig丶 阅读(224) 评论(0) 推荐(0) 编辑