摘要: 1.双重检查锁 public class Singleton { private static volatile Singleton singleton; private Singleton(){} public static Singleton getSingleton(){ if (single 阅读全文
posted @ 2022-03-26 18:28 程序员hg 阅读(13) 评论(0) 推荐(0) 编辑