Thrown for exceptional arithmetic conditions, most commonly integer division or modulo by zero (ArithmeticException: / by zero). Floating-point division by zero yields Infinity, not an exception.
ArithmeticException
java Thrown for exceptional arithmetic conditions, most commonly integer division or modulo by zero (ArithmeticException: / by zero). Floating-point division by zero yields Infinity, not an exception.