摘要:
考点 上代码 public class Exam5 { static int s; int i; int j; { System.out.println("非静态代码块"); int i = 1; i ++; j ++; s ++; } public void test(int j){ j ++; 阅读全文
摘要:
上代码 public class Exam4 { public static void main(String[] args) { int i = 1; String str = "hello"; Integer num = 200; int[] arr = {1,2,3,4,5}; MyData 阅读全文
摘要:
上代码(Son和Father) public class Father { private int i = test(); private static int j = method(); static { System.out.print("(1) "); } Father(){ System.o 阅读全文