摘要:
首先,我们来看下面这样一个例子:class Singleton { private static Singleton singleton = new Singleton(); public static int counter1; public static int counter2 = 0; private Singleton() { counter1++; counter2++; } public static Singleton getSingletone() { return singleton; }} p... 阅读全文
posted @ 2013-06-07 10:56
十年半山
阅读(885)
评论(0)
推荐(0)

浙公网安备 33010602011771号