摘要:
public class Demo04 { public static void main(String[] args) { int i =128; byte b =(byte)i; //byte 最大值127(2*7-1) 会造成内存溢出 //强制转换 (类型)变量名 高 >低 //自动类型转换 阅读全文
posted @ 2020-03-25 20:44
王佳瑞同学
阅读(130)
评论(0)
推荐(0)
摘要:
public class Demo03 { public static void main(String[] args) { // 一、整数拓展 进制 二进制0b 十进制 八进制0 十六进制0x int i=10; int i2=010; //八进制0 int i3=0x10; //十六进制0x S 阅读全文
posted @ 2020-03-25 15:47
王佳瑞同学
阅读(164)
评论(0)
推荐(0)

浙公网安备 33010602011771号