3下列代码中,将引起一个编译错误的行是( )。 1)public class Test{ 2)int m,n; 3)public Test(){} 4)public Test(int a){m=a;} 5)public

admin2013-03-01  37

问题 3下列代码中,将引起一个编译错误的行是(    )。    1)public class Test{    2)int m,n;    3)public Test(){}    4)public Test(int a){m=a;}    5)public static void main(String args[]){    6)Test t1,t2;    7)int j,k;    8)j=0; k=0;    9) t1=new Test();    10)t2=new Test(j,k);    11)}    12)}

选项 A、第3行
B、第5行
C、第6行
D、第10行

答案8

解析
转载请注明原文地址:https://kaotiyun.com/show/gu2p777K
0

最新回复(0)