Vidyalelo
Java Programming · Q9

Miscellaneous Java

Programming · Java Programming · question 9

Q9

In Java, which exception is thrown when attempting to divide by zero?

A.
NullPointerException
B.
ArrayIndexOutOfBoundsException
C.
ArithmeticException
Answer
D.
IllegalArgumentException

Answer: Option C

Solution

Answer: Option C
No explanation is given for this question Let's Discuss on Board