Java类型转换
摘要:
int i = 128;byte b = i;//报错byte b = (byte)i;//-128 强制转换,内存溢出 低 >高 byte,short,char-> int -> long -> float -> double 基本类型之间比较时低精度自动转化成高精度 byte 1个字节 shor 阅读全文
posted @ 2020-03-13 12:26 繁花似锦觅安宁 阅读(124) 评论(0) 推荐(0) 编辑