Primitive Types
There are 4 integer types: byte, short, int, long of size 8, 16, 32 and 64 bits, respectively.
float is 32 bits, double is 64 bits. Floating point arithmetic and data formats are defined by IEEE754 standard.
characters are given by 16bit Unicode charset and represented as short integers.
One can use casts for conversion such as
- long l;
- l = (long) i;
- // which can be explicit as here and sometimes implied (see later)
Note booleans are either TRUE or FALSE -- they are not 0, 1 ,-1 ...