网友您好, 请在下方输入框内输入要搜索的题目:
题目内容
(请给出正确答案)
publicclassX{publicstaticvoidmain(Stringargs){byteb=127;bytec=126;byted=b+c;}}Whichstatementistrue?()
A.Compilationsucceedsanddtakesthevalue253.
B.Line5containsanerrorthatpreventscompilation.
C.Line5throwsanexceptionindicating“Outofrange”
D.Line3and4containerrorthatpreventcompilation.
E.Thecompilationsucceedsanddtakesthevalueof1.
参考答案
更多 “ publicclassX{publicstaticvoidmain(Stringargs){byteb=127;bytec=126;byted=b+c;}}Whichstatementistrue?() A.Compilationsucceedsanddtakesthevalue253.B.Line5containsanerrorthatpreventscompilation.C.Line5throwsanexceptionindicating“Outofrange”D.Line3and4containerrorthatpreventcompilation.E.Thecompilationsucceedsanddtakesthevalueof1. ” 相关考题
考题
下列语句输出结果为( )。public class test{public static void main(String args[]){byte b=OXA;System.out.println(b);}}A.OXAB.AC.1D.10
考题
请阅读下列的程序publicclassExample01{publicstaticvoidmain(Stringargs){intnum=127;byteb=num;System、out、printIn(b);}}程序的运行结果是()。
A、编译通过,执行报错B、编译报错C、以上选项均不正确D、编译通过,执行输出127
考题
publicclassX{publicstaticvoidmain(String[]args){byteb=127;bytec=126;byted=b+c;}}Whichstatementistrue?()
A.Compilationsucceedsanddtakesthevalue253.B.Line5containsanerrorthatpreventscompilation.C.Line5throwsanexceptionindicating“Outofrange”D.Line3and4containerrorthatpreventcompilation.E.Thecompilationsucceedsanddtakesthevalueof1.
考题
下列语句输出结果为( )。 public class test { public static void main (String args [ ]) { byte b=OXA; System.out.println(b); } }A.OXAB.AC.1D.10
考题
5、下列程序中哪行代码是错误的? public class Exam { public static void main(String args[]) { int x = 8; byte b = 127; //【代码A】 b = x; //【代码B】 long y=x; //【代码C】 float z=6.89F ; //【代码D】 } }A.【代码A】B.【代码B】C.【代码C】D.【代码D】
考题
1KB=()。A.1000ByteB.10的10次方个ByteC.2的10次方个ByteD.2的20次方个Byte
热门标签
最新试卷