作品基本信息 作品名称:A Sea Dirge(海的挽歌) 作者:William Shakespeare(威廉·莎士比亚) 出版年代:1612 编注:此诗选自<暴风雨>第一幕第二场.标题<海的挽歌>系原编者所加. 作品原文 Full fathom five thy father lies: Of his bones are coral made; Those are pearls that were his eyes: Nothing of him that doth fade1
一.多线程下的单例设计模式 利用双重推断的形式解决懒汉式的安全问题和效率问题 //饿汉式 /*class Single { private static final Single t = new Single(); private Single(){} //private构造函数,确保其它类对象不能直接new一个该对象实例 public static Single getInstance() { return t; } } */ //懒汉式 class Single { private stat