Integer max value in Java
Integer is stored in 32 bits of memory. To find max and min values of Integer in Java we can use inbuilt fields of Integer class : Integer.MAX_VALUE = 2147483647 Integer.MIN_VALUE = -2147483648 Let us look at the example code : Output