Neben den Java-Klassen gibt es noch eine Reihe von primitiven Typen:

Typ Wertebereich LiteraleSorted ascending
double 64 bit Fließkommazahl 0.1D, 0.1, =2.3e42
float 32 bit Fließkommazahl 0.815F
byte 8 bit (vorzeichenbehaftet) 42, 0x42
short 16 bit (vorzeichenbehaftet) 12345
int 32 bit (vorzeichenbehaftet) 1234567890, 0x1A2B3C4D
long 64 bit (vorzeichenbehaftet) 9223372036854775807, 0x1...F
char 16 bit (Unicode) 'C', \u0042
boolean false, true

-- Christo - 14 Nov 2003
Topic revision: r1 - 2003-11-14, ChristopherHuhn - This page was cached on 2024-04-20 - 08:45.

This site is powered by FoswikiCopyright © by the contributing authors. All material on this collaboration platform is the property of the contributing authors.
Ideas, requests, problems regarding GSI Wiki? Send feedback | Legal notice | Privacy Policy (german)