2019-11-12 19:00:44 +00:00
parent de7d1f6bf0
commit 7f7ac9a31d

@@ -49,4 +49,15 @@
- Beliebig lang
- Groß-/Kleinschreibung relevant
- `getClass()` bezieht sich auf den Laufzeittypen
- byte = byte + byte funktioniert nicht, da + in int konvertiert. cast erforderlich, sonst compilerehler
- **byte = byte + byte** funktioniert nicht, da + in int konvertiert. cast erforderlich, sonst compilerehler
- **Wertebereiche**:
| Typ | Bytes | Bereich |
| -------- | -------- | -------- |
| byte | 1 | -2⁷ - 2⁷-1 |
| char | 2 | |
| short | 2 | |
| int | 4 | |
| long | 8 | |
| float | 4 | |
| double | 8 | |