下面哪个是非法的()A、intI=32;B、floatf=45.0;C、doubled=45.0;D、charc=’a’;
下面哪个是非法的()
- A、intI=32;
- B、floatf=45.0;
- C、doubled=45.0;
- D、charc=’a’;
相关考题:
如果已经定义了方法intf(boolb,inti),则以下方法中,哪一个不是合法的重载方法()。A、doublef(boolb,inti)B、intf(doubled,inti)C、intf(boolb,inti,doubled)D、doublef(boold,intj)
Whichofthefollowingstatementsarelegal?() A.longl=4990;B.inti=4L;C.floatf=1.1;D.doubled=34.4;E.doublet=0.9F;
Whichofthefollowingassignmentisnotcorrect?() A.floatf=11.1;B.doubled=5.3E12;C.doubled=3.14159;D.doubled=3.14;.
Whatwillbetheresultofattemptingtocompileandrunthefollowingcode?()publicclassQ6b0c{publicstaticvoidmain(Stringargs[]){inti=4;floatf=4.3;doubled=1.8;intc=0;if(i==f)c++;if(((int)(f+d))==((int)f+(int)d))c+=2;System.out.println(c);}}A.Thecodewillfailtocompile.B.0willbewrittentothestandardoutput.C.1willbewrittentothestandardoutput.D.2willbewrittentothestandardoutput.E.3willbewrittentothestandardoutput.
分析下面的代码行floatf=3.2;intI=f;,不正确地的答案是()A、代码不能编译B、代码编译,i被设置为3C、第二行若改为inti=(byte)f则可编译D、第一行若改为floatf=3.2f则可编译
分析下面的代码行floatf=3.2;intI=f;,错误的答案是()A、代码不能编译B、代码编译,i被设置为3C、第二行若改为inti=(byte)f则可编译D、第一行若改为floatf=3.2f则可编译
单选题分析下面的代码行floatf=3.2;intI=f;,不正确地的答案是()A代码不能编译B代码编译,i被设置为3C第二行若改为inti=(byte)f则可编译D第一行若改为floatf=3.2f则可编译
单选题下列哪些是不能通过编译的语句()Ainti=32Bfloatf=45.0Cdoubled=45.0Dchara=‘c’