addExact
Returns the sum of its arguments, throwing an exception if the result overflows an int
.
Return
the result
Parameters
x
the first value
y
the second value
Throws
if the result overflows an int
Returns the sum of its arguments, throwing an exception if the result overflows a long
.
Return
the result
Parameters
x
the first value
y
the second value
Throws
if the result overflows a long