In JDK, there are a series of plastic types, and the maximum value is an integer. MAX_VALUE, that is, 2 147483647, and the minimum value is an integer. Minimum value -2 147483648.
The plastic maximum plus 1, 2 147483648 (out of bounds), what is the value at this time? The result is -2 147483648, which is an integer. Minimum value.
Similarly, how about the reciprocal or absolute value of an integer. Minimum value? It is still an integer. MIN_VALUE, because the value is -2 147483648, and the absolute value of 2 147483648 exceeds integer.max _ value2147483647.
So there are the following results.
Integer MAX_VALUE+1 = integer. minimum value
Math.abs (integer. minimum value) = integer.min _ value (absolute value)
Long, short and byte have the same conclusion.