会员
周边
众包
新闻
博问
闪存
所有博客
当前博客
我的博客
我的园子
账号设置
简洁模式
...
退出登录
注册
登录
jet-strong
博客园
首页
新随笔
联系
管理
订阅
2019年10月11日
设计模式-单例模式、工厂模式
摘要: 一、单例模式 1、饿汉模式 public class Singleton { private static Singleton uniqueInstance = new Singleton(); private Singleton() { } } 2、懒汉式-线程安全 public class Si
阅读全文
posted @ 2019-10-11 20:10 jet-software
阅读(307)
评论(0)
推荐(0)
编辑
公告