继承父类的静态方法的加载顺序

  public class GrandFather { static{ System.out.println("GrandFather在静态代码块"); } } public class Father extends GrandFather{ static{ System.out.println("Father在静态代码块");
相关文章
相关标签/搜索