Multiple choice technology programming languages

Integer division by zero throws an exception.

  1. True

  2. False

Reveal answer Fill a bubble to check yourself
A Correct answer
Explanation

Integer division by zero (e.g., 5/0) throws ArithmeticException, unlike floating-point division by zero (e.g., 5.0/0) which produces Infinity. This is because integer arithmetic cannot represent infinity - the operation is undefined for integers and must signal an error.