Styrow.dev
Question 218 of 247
Java Topic: General medium

When ArithmeticException is thrown?

Question

When ArithmeticException is thrown?

Answer

The ArithmeticException is thrown when integer is divided by zero or taking the remainder of a number by zero. It is never thrown in floating-point operations.