摘要: 单例模式的多种实现方式 1.饿汉模式 public class Singleton { private static Singleton singleton = new Singleton(); private Singleton(){} public static Singleton getInstance(){ return singlet... 阅读全文
posted @ 2016-03-17 14:30 超人不会飞飞飞 阅读(167) 评论(0) 推荐(0) 编辑