Math.abs(int):
returns the absolute value of the parameter.
If the parameter is equal to Integer.MIN_VALUE(-2147483648), it will return the MIN_VALUE.
So Math.abs(int) does not always return positive value.
Math.abs(int):
returns the absolute value of the parameter.
If the parameter is equal to Integer.MIN_VALUE(-2147483648), it will return the MIN_VALUE.
So Math.abs(int) does not always return positive value.