类型转换

小数优先级大于整数

高到低强制转换

低到高自动转换

byte,short,char<int<long<float<double

 

posted @ 2021-07-13 21:26  shawn4868  阅读(18)  评论(0)    收藏  举报