2015年7月6日

java并发4-单例设计方法

摘要: 单例的设计方式:第一种:非延迟加载单例类public class Singleton { private Singleton() {} private static final Singleton instance = new Singleton(); public static Singleton getInstance() { return instance; } } ... 阅读全文

posted @ 2015-07-06 21:38 时间朋友 阅读(399) 评论(0) 推荐(0)

导航