1
0
mirror of https://github.com/Snailclimb/JavaGuide synced 2025-06-16 18:10:13 +08:00

[docs improve] 把数字类型细分为整数型和浮点型

This commit is contained in:
sam 2022-02-16 12:00:22 +08:00
parent c148607a8a
commit 69c7abec20

View File

@ -581,7 +581,9 @@ public native int hashCode();
Java 中有 8 种基本数据类型,分别为:
1. 6 种数字类型 `byte``short``int``long``float``double`
1. 6 种数字类型:
- 4 种整数型:`byte``short``int``long`
- 2 种浮点型:`float``double`
2. 1 种字符类型:`char`
3. 1 种布尔型:`boolean`