会员
周边
众包
新闻
博问
闪存
所有博客
当前博客
我的博客
我的园子
账号设置
简洁模式
...
退出登录
注册
登录
榆杨
博客园
首页
新随笔
联系
管理
订阅
2020年3月29日
DCL单例模式为什么要两次判空
摘要: public class Test { private volatile static Test instance; private Test() { } public static Test getInstance() { if (instance == null) { synchronized
阅读全文
posted @ 2020-03-29 22:22 榆杨
阅读(2087)
评论(0)
推荐(3)
编辑
公告