为什么不按每个API抛出和异常?:
返回以1递增的参数,如果结果溢出int则抛出异常.
System.out.println(Math.incrementExact(2_147_483_647 + 1));
返回-2147483647
java api
api ×1
java ×1