A, B, and C are incorrect.
A compiles with an ArrayIndexOutOfBoundsException exception thrown at runtime.
This is because the array index characterName[3] is out of bounds.
B fails to compile because only an integer is expected in the box brackets.
C fails to compile because the box brackets that are needed to create the array are missing.
|