摘要:
一.类型转换 byte,short,char—>int—>long—>float—>double 低————————————————————>高 由于java是强类型语言,运算中需要把不同的数据类型转换为同一类型,再进行运算。 类型转换由低到高自动转换,由高到低强制转换。 //类型转换 int i1 阅读全文
posted @ 2022-04-09 20:35
多巴胺LLL
阅读(31)
评论(0)
推荐(0)
|
摘要:
一.类型转换 byte,short,char—>int—>long—>float—>double 低————————————————————>高 由于java是强类型语言,运算中需要把不同的数据类型转换为同一类型,再进行运算。 类型转换由低到高自动转换,由高到低强制转换。 //类型转换 int i1 阅读全文
posted @ 2022-04-09 20:35
多巴胺LLL
阅读(31)
评论(0)
推荐(0)
|