java编程的问答DataType compatability RULE – large types can usually store small types32 is a divisor of 64EXCEPTION – integer types cannot store decimals without a castIn the blanks below,write in the data types that could fill the blank tha
来源:学生作业帮助网 编辑:作业帮 时间:2024/07/02 00:37:22
![java编程的问答DataType compatability RULE – large types can usually store small types32 is a divisor of 64EXCEPTION – integer types cannot store decimals without a castIn the blanks below,write in the data types that could fill the blank tha](/uploads/image/z/14647662-54-2.jpg?t=java%E7%BC%96%E7%A8%8B%E7%9A%84%E9%97%AE%E7%AD%94DataType+compatability+RULE+%E2%80%93+large+types+can+usually+store+small+types32+is+a+divisor+of+64EXCEPTION+%E2%80%93+integer+types+cannot+store+decimals+without+a+castIn+the+blanks+below%2Cwrite+in+the+data+types+that+could+fill+the+blank+tha)
java编程的问答DataType compatability RULE – large types can usually store small types32 is a divisor of 64EXCEPTION – integer types cannot store decimals without a castIn the blanks below,write in the data types that could fill the blank tha
java编程的问答
DataType compatability RULE – large types can usually store small types
32 is a divisor of 64
EXCEPTION – integer types cannot store decimals without a cast
In the blanks below,write in the data types that could fill the blank that would not require a cast.
1.char c = < blank > ___________________________________________
2.byte b = < blank > ___________________________________________
3.short s = < blank > ___________________________________________
4.int i = < blank > ___________________________________________
5.long r = < blank > ___________________________________________
6.float f = < blank > ___________________________________________
7.double d = < blank > ___________________________________________
8.int a = (int)56.67; out.println(a); _________________________
9.long u = (int)56.67; out.println(u); _________________________
10.char p = ‘A’+100; out.println((int)p); _________________________
11.double g = 56.67d; out.println(g); _________________________
12.float v = (int)56.67; out.println(v); _________________________
java编程的问答DataType compatability RULE – large types can usually store small types32 is a divisor of 64EXCEPTION – integer types cannot store decimals without a castIn the blanks below,write in the data types that could fill the blank tha
字符型
字节
短整型
整形
长整形
浮点型
双精度浮点型
56
56
165
56.67
56.0