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

西门子PLC的定时字是哪个?() A.2ByteB.4ByteC.6ByteD.8Byte

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

若有byte b=6;char c='c';则表达式b+c的值的类型是()。A.intB.byteC.charD.float

一幅30×20的彩色图像(8bit/像素),其数据量为()。 A、600byteB、4800byteC、240byteD、160byte

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