Java: Range of a long

A long is a signed 64-bit integer.

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

−9,223,372,036,854,775,808 … 9,223,372,036,854,775,807

or, equivalently

−263 … 263−1

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

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