摘要:
public class TestSingleton { private static TestSingleton instance; private TestSingleton() {} public static TestSingleton getInsatance() { if(in... 阅读全文
摘要:
static变量、实例变量的初始化以及类加载顺序过程 publicclassOuter{234publicOuter(){5System.out.print("a");//构造方法,new的时候才会出现,且后于变量的创建6}78910publicstaticvoidsayOther(Strings)... 阅读全文