- 博客(1)
- 收藏
- 关注
转载 单例模式的几种写法(包含双检锁写法)
饿汉式单例类 Java代码 public class Singleton { private Singleton(){ } private static Singleton instance = new Singleton(); private static Singleton
2017-06-02 10:47:53 10246 4
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人
无技术不江湖
饿汉式单例类 Java代码 public class Singleton { private Singleton(){ } private static Singleton instance = new Singleton(); private static Singleton
2017-06-02 10:47:53 10246 4
TA创建的收藏夹 TA关注的收藏夹
TA关注的人