Next page | Contents page |

Classes corresponding to the primitive types

Each of the base data types has a corresponding class in java.lang with useful utility methods:

Byte, Short, Integer, Long, Float, Double, Boolean, Character

Note in particular that the maximum and minimum values allowed for each of the number types is given by a constant field in its corresponding class. So you never need to remember any of those values.

Next page | Contents page |