网友您好, 请在下方输入框内输入要搜索的题目:
题目内容
(请给出正确答案)
下面哪个是非法的()
- 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则可编译
考题
单选题下列哪些是不能通过编译的语句()A
inti=32B
floatf=45.0C
doubled=45.0D
chara=‘c’
热门标签
最新试卷