int

The $\lstinline{int}$ data type can have values from $-2^31$ to $2^{31}-1$ (32-bit signed two's complement integer). If you are using Java 8 or later, you can use unsigned 32-bit integer with a minimum value of 0 and a maximum value of $2^{32}-1$. Default value is 0.


\begin{lstlisting}
class IntExample {
public static void main(String[] args) {
\par
int range = -4250000;
System.out.println(range);
}
}
\end{lstlisting}