1
0
mirror of https://github.com/Snailclimb/JavaGuide synced 2025-06-20 22:17:09 +08:00

[docs improve] 调整基本数据类型的顺序,从小到大排列

This commit is contained in:
sam 2022-02-16 13:18:55 +08:00
parent 0de50022ea
commit 63b5c8fab4

View File

@ -642,10 +642,10 @@ Java 中有 8 种基本数据类型,分别为:
| 基本类型 | 位数 | 字节 | 默认值 |
| :-------- | :--- | :--- | :------ |
| `int` | 32 | 4 | 0 |
| `short` | 16 | 2 | 0 |
| `long` | 64 | 8 | 0L |
| `byte` | 8 | 1 | 0 |
| `short` | 16 | 2 | 0 |
| `int` | 32 | 4 | 0 |
| `long` | 64 | 8 | 0L |
| `char` | 16 | 2 | 'u0000' |
| `float` | 32 | 4 | 0f |
| `double` | 64 | 8 | 0d |