Java中四大代碼塊的執行順序(附code)

驗證證的方法是寫code,以下: public class test { static class A { public static String name = "hello"; static { System.out.println("A static block1"); //1 }
相關文章
相關標籤/搜索