Java 数值类型之间的合法转换

                           +------+
                           | char |
                           +-+----+
                             |           +--------------------------+
                             |           |                          |
                             v           |                          v
+------+     +-------+     +-+---+     +-+----+     +-------+     +-+------+
| byte | --> | short | --> | int | --> | long | --> | float | --> | double |
+------+     +-------+     +-+-+-+     +------+     +-+-----+     +-+------+
                             | |                      ^             ^
                             | |                      |             |
                             | +----------------------+             |
                             |                                      |
                             +--------------------------------------+
上一篇:JAVA八大基本数据类型


下一篇:长列表渲染数据的处理