Fifth International World Wide Web Conference
Java Built-in Types (cont.)
- There are two floating point types, both conforming to IEEE 754 rules:
float (32 bits)
double (64 bits)
- gradual underflow and generation of infinity on overflow (no exceptions)
- mixed floating and integer expressions automatically convert integers
- There is one character type:
char (16 bits)
- Always unsigned
- Represented in the Unicode character encoding
- There is one logical type:
boolean (1 bit)
- One of two values:
true or false
- No implicit conversion to or from
boolean
Java - An Introductory Language Tutorial
(E.A.Johnson)