http://dev.yesky.com/436/7581936.shtml
http://blog.sina.com.cn/s/blog_61889f5c0101030p.html
1 饿汉式单例类.在类初始化时,已经自行实例化 class EagerSingleton { private static final EagerSingleton m_instance = new EagerSingleton();
public class Version4Java { public static void main(String[] args) {  
Copyright © 2005-2025 51CTO.COM 版权所有 京ICP证060544号