摘要: 单例模式 一、饿汉式 在类初始化时,已经自行实例化 public class Singleton { private static Singleton instance = new Singleton(); private Singleton() { } public static Singleto 阅读全文
posted @ 2012-11-19 22:55 一瓶珍情 阅读(291) 评论(0) 推荐(0) 编辑