...
Explicitly check the range of each arithmetic operation and throw an ArithmeticException
on overflow. When performing operations on values of type int
or smaller, the arithmetic can be performed using variables of type long
. For performing arithmetic operations on numbers of type long
, the BigInteger
Class must be used.
...