摘要: 单例模式三种写法:第一种最简单,但没有考虑线程安全,在多线程时可能会出问题public class Singleton{ private static Singleton _instance = null; private Singleton(){} public static S... 阅读全文
posted @ 2014-06-30 16:09 马羊 阅读(281) 评论(0) 推荐(0) 编辑