2013年2月26日
摘要: The DCL idiom was designed to support lazy initialization, which occurs when a class defers initialization of an owned object until it is actually needed:public class WorldCup { private static WorldCup instance; public static WorldCup getInstance(){ if(instance == null) //A instance = new WorldCu... 阅读全文
posted @ 2013-02-26 22:27 jnuyao 阅读(168) 评论(0) 推荐(0) 编辑