Java局部代碼塊({})執行順序

public class Judge { public static void main(String[] args) { TestOne t=new TestOne("2");//執行順序如輸出語句標識 } static class TestOne{ static{ System.out.println("1.靜態代碼塊"); } {
相關文章
相關標籤/搜索