System.out.println(Math.abs(-2147483648)); long a = -2147483648; System.out.println(Math.abs(a)); -2147483648 2147483648