public class MathTest
{
public static void main(String[] args)
{
System.out.println(""+Math.abs(Integer.MIN_VALUE));
System.out.println(""+Math.abs(Long.MIN_VALUE));
}
}
为何结果为:
-2147483648
-9223372036854775808
...全文
1506打赏收藏
Math.abs(Integer.MIN_VALUE));
public class MathTest { public static void main(String[] args) { System.out.println(""+Math.abs(Integer.MIN_VALUE)); System.out.println(""+Math.abs(Long.MIN_VALUE)); } } 为何结果为: -2147483648 -9223372036854775808