The int keyword is a data type that can store whole numbers from -2147483648 to 2147483647. The Java int keyword is a primitive data type. It is used to declare variables. It can also be used with methods to return integer-type values. It can hold a 32-bit signed two's complement integer.