网友您好, 请在下方输入框内输入要搜索的题目:
题目内容
(请给出正确答案)
单选题
下面代码行中编译的时候不会报警告或错误的有()。
A
float f=1.3;
B
char c=a;
C
byte b=257;
D
boolean b=null;
E
int i=10;
参考答案
参考解析
解析:
暂无解析
更多 “单选题下面代码行中编译的时候不会报警告或错误的有()。A float f=1.3;B char c=a;C byte b=257;D boolean b=null;E int i=10;” 相关考题
考题
分析下面的代码行 float f=3.2; int i=f; ,不正确地的答案是()
A、代码不能编译B、代码编译,i被设置为3C、第二行若改为inti=(byte)f则可编译D、第一行若改为floatf=3.2f则可编译
考题
自动类型转换规定的优先次序是( )。A.short,byte,char→long→int→float→doubleB.short,byte,char→int→long―float→doubleC.byte,short,char→long→int→float→doubleD.byte,short,char→int→long→float→double
考题
分析下面的代码行 float f=3.2; int I=f; ,错误的是()A、代码不能编译B、代码编译,i被设置为3C、第二行若改为 int i=(byte)f 则可编译D、第一行若改为 float f=3.2f 则可编译
考题
以下代码中变量result的可能类型有哪些?byte b = 11;short s = 13;result = b * ++s;
A.byte, short, int, long, float, doubleB.boolean, byte, short, char, int, long, float, doubleC.byte, short, char, int, long, float, doubleD.byte, short, charE.int, long, float, double
考题
分析下面的代码行floatf=3.2;intI=f;,错误的答案是()A、代码不能编译B、代码编译,i被设置为3C、第二行若改为inti=(byte)f则可编译D、第一行若改为floatf=3.2f则可编译
考题
下面代码行中编译的时候不会报警告或错误的有()。A、float f=1.3;B、char c="a";C、byte b=257;D、boolean b=null;E、int i=10;
考题
单选题分析下面的代码行floatf=3.2;intI=f;,错误的答案是()A
代码不能编译B
代码编译,i被设置为3C
第二行若改为inti=(byte)f则可编译D
第一行若改为floatf=3.2f则可编译
考题
单选题下面代码行中编译的时候不会报警告或错误的有()。A
float f=1.3;B
char c=a;C
byte b=257;D
boolean b=null;E
int i=10;
考题
单选题下面代码行中编译的时候不会报警告或错误的是()。A
float f=1.3;B
char c=a;C
byte b=257;D
boolean b=false;
热门标签
最新试卷