摘要: 单例模式 处理资源访问冲突,表示全局唯一类 //饿汉式 public class Hungry { private static final Hungry hungry = new Hungry(); private Hungry(){} public Hungry getInstance(){ r 阅读全文
posted @ 2021-02-02 15:55 rd-yyx 阅读(104) 评论(0) 推荐(0)