JavaSE 面试题 类初始化和实例初始化等 class Father { private int i = test(); private static int j = method(); static { System.out.print("(1)"); } Father() { System.out.print("(2)"); } { System.out.print("(3)"); } public int test() { System.…
题目 下面代码运行的结果是什么? Father 类 /** * @author kevin * @date 2019/7/8 15:48 */ public class Father { private int i = test(); private static int j = method(); static { System.out.print("(1)"); } Father(){ System.out.print("(2)"); } { System.ou…