未分类题
Whichofthefollowingfragmentsmightcauseerrors?()
A.Strings="Gonewiththewind";Stringt="good";Stringk=s+t;
B.Strings="Gonewiththewind";Stringt;t=s[3]+"one";
C.Strings="Gonewiththewind";Stringstandard=s.toUpperCase();
D.Strings="homedirectory";Stringt=s-"directory";
【参考答案】
B, D
A:String类型可以直接使用+进行连接运算。
B:String是一种Object,而不是简......
(↓↓↓ 点击下方‘点击查看答案’看完整答案 ↓↓↓)
点击查看答案
<上一题
目录
下一题>
热门
试题
单项选择题
试用门电路设计一个1路-4路数据分配器,正确的是:()。
A.jiandati.com/7e826d2-chaoxing2016-1013293.jpeg'/>
B、
B.jiandati.com/3852271-chaoxing2016-1013294.jpeg'/>
C、
C.jiandati.com/4bdf788-chaoxing2016-1013295.jpeg'/>
D、
D.jiandati.com/bca4f0d-chaoxing2016-1013296.jpeg'/>
点击查看答案
未分类题
1)classPerson{2)publicvoidprintValue(inti,intj){ *…* }3)publicvoidprintValue(inti){ *...* }4)}5)publicclassTeacherextendsPerson{6)publicvoidprintValue(){ *...* }7)publicvoidprintValue(inti){ *...* }8)publicstaticvoidmain(Stringargs[]){9)Persont=newTeacher();10)t.printValue(10);11)}12)}Whichmethodwillthestatementonline10call?()A.online2B.online3C.online6D.online7
A...*/}4)}5)publicclassTeacherextendsPerson{6)publicvoidprintValue(){/*...*/}7)publicvoidprintValue(inti){/*...*/}8)publicstaticvoidmain(Stringargs[]){9)Persont=newTeacher();10)t.printValue(10);11)}12)}Whichmethodwillthestatementonline10call?()
A.online2
B.online3
C.online6
D.online7
点击查看答案
相关试题
阅读下列材料,指出其中运用了何种探求因果...
机械设备的电气装置____。
直径为3米的圆桌中心上方2米处吊一平均发...
YouwanttoinstallWindows2000Professio...
YouarepreparingtoinstallWindows2000P...