Java: Range of an int

An int is a signed 32-bit integer.

Min value (inclusive) and max value (inclusive):

−2,147,483,648 … 2,147,483,647

or, equivalently

−231 … 231−1

These values are available as constants: Integer.MIN_VALUE and Integer.MAX_VALUE.

See ranges of all primitive types here: Ranges of Primitive Types