2017年1月19日

设计模式-单例模式

摘要: 第一种方式:通过synchronized解决,性能下降 1 package singleton; 2 3 public class Singleton { 4 private Singleton() { 5 } 6 7 private static Singleton instance ; 8 9 阅读全文

posted @ 2017-01-19 23:31 疯癫哈士奇 阅读(167) 评论(0) 推荐(0)

导航