Solved

If Int[] X = New Int[15]; and the Statement X[-1]

Question 18

Multiple Choice

If int[] x = new int[15]; and the statement x[-1] = 0; is executed, then which of the following Exceptions is thrown?


A) IndexOutOfBoundsException
B) ArrayIndexOutOfBoundsException
C) NegativeArraySizeException
D) NullPointException
E) ArithmeticException

Correct Answer:

verifed

Verified

Unlock this answer now
Get Access to more Verified Answers free of charge

Related Questions