摘要: 1.单实例和多实例 单实例一般会在类中自己实例化,通过getInstance获取该实例。ps: /** * 单例模式 */ public class Singleton { private static Singleton singleton = new Singleton(); private S 阅读全文
posted @ 2017-01-16 10:11 zipon 阅读(4683) 评论(0) 推荐(1) 编辑