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:

Verified
Correct Answer:
Verified
Related Questions
Q13: A command-line argument is data that is
Q14: It is possible to sort an array
Q15: A Java main method uses the parameter
Q16: Arrays have a built-in toString method that
Q17: How can you tell if a user
Q19: Code Example Ch 08-2<br>Assume you have an
Q20: What does the following statement do? int[]
Q21: Assume list is an array of int
Q22: A ragged array is a multidimensional array
Q23: Given the following code and assuming list