145k views
5 votes
What error occurs when you access an array element with an invalid index?

Select one:
A) A Null Pointer Exception error
B) An Array Index Out Of Bounds Exception error
C) An Arithmetic Exception error
D) A Class Cast Exception error

User JHowzer
by
8.4k points

1 Answer

0 votes

Answer:

Step-by-step explanation:

Option B is the correct answer.

User WildBamaBoy
by
8.7k points