Next: 1.3.1.0.2 Conversions Between Types
Up: 1.3.1 Primitive Types
Previous: 1.3.1 Primitive Types
Java interprets unadorned integer constants as values of type int. Long integer constants are indicated by attaching the suffix
L to the number. For example, the constant
9223372036854775807L can be used in Java program text, while the
same constant without the L is an error because it is too big to
be an int. The double type is the default type for any
floating point constant. On modern machines, there is little reason
to use the less precise float.
Corky Cartwright
2000-01-07