请先阅读下面的代码D public class Test { public Test(){ System.out.println(构造方法一被调用了); } public Test(int x){ this(); System.out.println(构造方法二被调用了); } public Test(boolean b){ thi..
请先阅读下面的代码D public class Test { public Test(){ System.out.println("构造方法一被调用了"); } public Test(int x){ this(); System.out.println("构造方法二被调用了"); } public Test(boolean b){ this(1); System.out.println("构造方法三被调用了"); } public static void main(String[] args) { Test test = new Test(true); } } 上面程序的运行结果为下列哪一项?
A、构造方法一被调用了
B、构造方法二被调用了
C、构造方法三被调用了
D、以上三个选项之和