Returns the difference of the arguments,
throwing an exception if the result overflows an int
.
x | the first value | |
y | the second value to subtract from the first |
ArithmeticException | if the result overflows an int |
Math.subtractExact(int,int)
Diagram: Math