Day06
摘要:类型转换 为什么要进行类型转换 由于Java是强类型语言,所以在进行一些运算时要进行类型转换 运算中不同数据先转换为同一种数据再进行运算 低 >高(字节数) byte,short,char,int,long,float,double //浮点数的优先级较高 强制类型转换 高字节转换为低字节时需要强制
阅读全文
posted @ 2022-01-05 13:41
posted @ 2022-01-05 13:41
posted @ 2022-01-04 23:48
posted @ 2022-01-02 21:11
posted @ 2022-01-01 19:07