nerdexam
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)
  • A
    80% (20)
  • B
    12% (3)
  • C
    4% (1)
  • D
    4% (1)

Community Discussion

No community discussion yet for this question.

Full GSSP-JAVA Practice