mirror of
https://github.com/Snailclimb/JavaGuide
synced 2025-06-16 18:10:13 +08:00
[docs improve] 把数字类型细分为整数型和浮点型
This commit is contained in:
parent
c148607a8a
commit
69c7abec20
@ -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`。
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user