What exception does LINE A throw?
Correct Answer : A
Here, the exception thrown is an
ArithmeticException because all variables in the array are initilaised to zero by default and an expression is evaluated with the denominator as zero which throws
ArithmeticException with message 'divide by zero'.
The answer is A.
Topic: Why Java Throws Exceptions