摘要: public class Demo04 { public static void main(String[] args) { int i=128; byte b=(byte)i;//内存溢出 System.out.println(i); System.out.println(b); //强制转换 ( 阅读全文
posted @ 2021-08-19 16:03 大张0608 阅读(55) 评论(0) 推荐(0)
摘要: public class Demo03 { public static void main(String[] args) { //整数拓展: 进制 二进制0b 十进制 八进制0 十六进制0x int i1=10; int i2=0b10; int i3=010; int i4=0x10; Syste 阅读全文
posted @ 2021-08-19 15:33 大张0608 阅读(62) 评论(0) 推荐(0)