Why Math.abs(Integer.MIN_VALUE)) return a negative value?
Overflow, since integer range is -2147483648 to 2147483647. Actually this is a real interesting one for learning 2’s complement system. Everyone knows the range of bye is -128 to 127, if you use Math.abs(-128) and than cast it back to byte, you will get the similar result. Here is a program with output to help you understand the question.