GIAC
GSSP-JAVA · Question #173
Which of the following exceptions will a compiler throw when a number is divided by zero?
The correct answer is A. ArithmeticException. See the full explanation below for the reasoning.
Question
Which of the following exceptions will a compiler throw when a number is divided by zero?
Options
- AArithmeticException
- BI/OException
- CArrayIndexOutOfBoundsException
- DNullPointerException
How the community answered
(25 responses)- A80% (20)
- B12% (3)
- C4% (1)
- D4% (1)
Community Discussion
No community discussion yet for this question.