8类型转换
摘要:
类型转换 低 高 ***byte,short,char <- int <- long <- float <- double 强制转换(类型的优先级高到低需要强制转换) (类型)变量名 int i = 128;byte b = (byte)i; 自动转换(类型的优先级低到高) int i = 128; 阅读全文
posted @ 2021-01-11 22:00 谪仙lin 阅读(64) 评论(0) 推荐(0)
posted @ 2021-01-11 22:00 谪仙lin 阅读(64) 评论(0) 推荐(0)