摘要: class WithFinal{ private final void f(){ System.out.println("WithFinal.f()"); } private void g(){ System.out.println("WithFinal.g()"); }}class Overrid 阅读全文
posted @ 2021-03-09 16:47 节日快乐 阅读(70) 评论(0) 推荐(0) 编辑
摘要: Date shsj1 = new Date();Date shsj2 = new Date(); Calendar instance1 = Calendar.getInstance();Calendar instance2 = Calendar.getInstance();instance1.set 阅读全文
posted @ 2021-03-09 15:21 节日快乐 阅读(91) 评论(0) 推荐(0) 编辑
摘要: // 父类 public class ParentA { private static int i=5; private int j; static { System.out.println("static A"); System.out.println("ParentA static i = "+ 阅读全文
posted @ 2021-03-09 13:46 节日快乐 阅读(277) 评论(0) 推荐(0) 编辑