未分类 · 2025年11月21日

re考虑如下类:re public class Test { int j,k; public Test(int j ) { this(j,0); } public Test(int j, int k) { this.j=j; this.k=k; }}re以下哪些可正确创建Test对象?re 第六章单元测试 A.Test t = new Test(); B.Test t = new Test(1); C.Test t = new Test(1, 2); D.Test t = new Test(1, 2, 3);

re考虑如下类:re public class Test { int j,k; public Test(int j ) { this(j,0); } public Test(int j, int k) { this.j=j; this.k=k; }}re以下哪些可正确创建Test对象?re 第六章单元测试 A.Test t = new Test(); B.Test t = new Test(1); C.Test t = new Test(1, 2); D.Test t = new Test(1, 2, 3);

正确答案:BC