摘要: 首先是代码,经典的双重锁写法 public class Singleton { private volatile static Singleton Instance; private Singleton(){} public static Singleton getInstance(){ if(In 阅读全文
posted @ 2021-04-08 09:43 748573200000 阅读(408) 评论(0) 推荐(0)