Multiple choice technology programming languages

Which arithmetic operations can result in the throwing of anArithmeticException?

  1. +

  2. *

  3. -

  4. /

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

In Java, integer division or modulo operations by zero using the / or % operators will throw an ArithmeticException. Floating-point division by zero does not throw an exception but results in Infinity or NaN.