若有byte b=6;short s=20;则表达式b+s的值的类型是()。
A.byte
B.int
C.short
D.char
第1题:
若有定义语句:int s=6;则表达式s%2+(s+1)%2的值为 。
第2题:
A.byte, short, int, long, float, double
B.boolean, byte, short, char, int, long, float, double
C.byte, short, char, int, long, float, double
D.byte, short, char
E.int, long, float, double
第3题:
若有float f=2.6f;short s=20;则表达式f+s的值的类型是()。
A.float
B.short
C.int
D.byte
第4题:
若有char c='8';short s=20;则表达式c+s的值的类型是()。
A.char
B.short
C.int
D.byte
第5题:
若有byte b=6;char c='c';则表达式b+c的值的类型是()。
A.int
B.byte
C.char
D.float
第6题:
若有int x=10;char c='d';则表达式a+c的值的类型是()。
A.char
B.int
C.float
D.byte
第7题:
自动类型转换规定的优先次序是( )。
A.short,byte,char→long→int→float→double
B.short,byte,char→int→long―float→double
C.byte,short,char→long→int→float→double
D.byte,short,char→int→long→float→double
第8题:
Java语言中数值数据的类型能自动转换,按照从左到右的转换次序为()。
A.byte→int→short→long→float→double
B.byte→short→int→long→float→double
C.byte→short→int→float→long→double
D.short→byte→int→long→float→double
第9题:
switch语句中的表达式的值只能是int、byte、short和______型的值。