摘要: public class LifeCycle { // 静态属性 private static String staticField = getStaticField(); // 静态方法块 static { System.out.println(staticField); System.out.p 阅读全文
posted @ 2021-05-03 19:04 blackRx 阅读(52) 评论(0) 推荐(0) 编辑
摘要: 类 demo public class ClassDemo { //数据域 private Integer filed1; private String filed2; private static final Integer FILED_3=1; //初始化块 { } //静态初始化块 stati 阅读全文
posted @ 2021-05-03 19:03 blackRx 阅读(144) 评论(0) 推荐(0) 编辑
© 2021 GitHub, Inc.