首页
外语
计算机
考研
公务员
职业资格
财经
工程
司法
医学
专升本
自考
实用职业技能
登录
计算机
3下列代码中,将引起一个编译错误的行是( )。 1)public class Test{ 2)int m,n; 3)public Test(){} 4)public Test(int a){m=a;} 5)public
3下列代码中,将引起一个编译错误的行是( )。 1)public class Test{ 2)int m,n; 3)public Test(){} 4)public Test(int a){m=a;} 5)public
admin
2013-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
本试题收录于:
二级Java题库NCRE全国计算机二级分类
0
二级Java
NCRE全国计算机二级
相关试题推荐
下列程序将Date对象写入文件file42.txt中,选择正确的语句填入下列程序中的横线处。packagech1;impbrtjava.io.*;importjava.util.*;publicclas
下列程序的执行结果是______。classA1implementsRunnable{publicvoidrun(){for(ihti=
下列代码实现从文件file.dat中读出第5个字节到变量c中,横线处应该填入下列项中的______。importjava.io.*;publicclassexl5{
对长度为4的顺序表进行查找,若第一个元素的概率为1/8,第二个元素的概率为1/4,第三个元素的概率3/8,第四个元素的概率为1/4,则查找任一元素的平均查找长度为______。
Java语言属于______。
下列有关数据库的描述,正确的是______。
在Applet被下载时调用,用于进行必要的初始化操作的方法是______。
Java语言的循环语句包括for语句、dowhile语句和______语句。
下列有关Applet参数的叙述正确的是
设有定义语句inta[]={66,77,99};,则下列对此语句的叙述中错误的是
随机试题
Rz是表面粗糙度评定参数中()的符号。
A.排便可加重肛门疼痛,伴大便带鲜血B.肛周肿痛伴发热C.反复发作的肛周红肿疼痛,窦道外口流出脓性分泌物D.肛门疼痛,伴有局部暗紫色肿块E.排便时出血、无痛肛裂
A.枳实消痞丸B.金玲子散C.半夏厚朴汤D.柴胡疏肝散具有行气散结降逆化痰功用的方剂是
孕妇,27岁,停经48天,恶心、呕吐l周。每天呕吐2~3次,进食量减少,尿酮体阴性。护士采取的正确措施是()
2015年1月1日,张某在工作时从高架上意外摔落,造成重伤,被劳动能力鉴定委员会鉴定为l级伤残。停工留薪期满后因张某后期康复出现问题,器官衰竭,不治身亡。根据社会保险法律制度的规定,张某家属可以从工伤保险基金中领取()。
德国表现主义的第一个社团是()。
儿童选择同性别伙伴的倾向日益明显的时期约在()
DrThomasStarzl,likeallthepioneersoforgantransplantation,hadtolearntolivewithfailure.Whenheperformedtheworld
Thethreatfromglobalwarming,hereports,"Isveryreal.Itisonlyamatteroftimebeforethetemperatureofthesurfaceof
可以造成市场利率上升的因素包括()。
最新回复
(
0
)