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

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

-- Christo - 14 Nov 2003
Topic revision: r1 - 2003-11-14, ChristopherHuhn
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)