若有byte b=6;short s=20;则表达式b+s的值的类型是()。A.byteB.intC.shortD.char

若有byte b=6;short s=20;则表达式b+s的值的类型是()。

A.byte

B.int

C.short

D.char


相关考题:

switch语句中的表达式的值只能是int、byte、short和______型的值。

Java语言中数值数据的类型能自动转换,按照从左到右的转换次序为()。A.byte→int→short→long→float→doubleB.byte→short→int→long→float→doubleC.byte→short→int→float→long→doubleD.short→byte→int→long→float→double

自动类型转换规定的优先次序是( )。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

若有int x=10;char c='d';则表达式a+c的值的类型是()。A.charB.intC.floatD.byte

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

若有char c='8';short s=20;则表达式c+s的值的类型是()。A.charB.shortC.intD.byte

若有float f=2.6f;short s=20;则表达式f+s的值的类型是()。A.floatB.shortC.intD.byte

以下代码中变量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

若有定义语句:int s=6;则表达式s%2+(s+1)%2的值为 。