下列代码中哪一行会出现编译错误 public class Test{ int m, n; public Test(){} public Test(int a){m=a;} public static void main(String arg[]){ Test t1, t2; int j, k; j=0; k=0; t1=new Test(); t2=new Test(j,k); } }

A.行3 B.行5 C.行6 D.行10

时间:2024-04-22 09:46:08

相似题目