摘要: 单例模式的实现方式: 1、 使用饿汉模式加载或使用static代码块 public class SingletonHungry { // 使用饿汉模式加载 private static SingletonHungry instance = new SingletonHungry(); // priv 阅读全文
posted @ 2019-07-19 17:10 聚散彡流沙 阅读(503) 评论(0) 推荐(0) 编辑