Press "Enter" to skip to content

What is Integer Min & Max Value in Java?

In Java, there are four types of integers: byte, short, int and long. These are all signed, positive and negative values. The range of integer min & max value in Java as mentioned below:

Integer Min & Max Value Range in Java

long signed 64-bit type holds range minimum -9,223,372,036,854,775,808 maximum 9,223,372,036,854,775,807

int signed 32-bit type holds range minimum -2,147,483,648 maximum 2,147,483,647

short signed 16-bit type holds range minimum -32,768 maximum 32,767

byte signed 8-bit type holds range minimum -128 maximum 127