Question OOP-EXC-0049
MediumWhich exception does Java throw for int[] a = new int[3]; a[3] = 1;?
- A.
ArithmeticException
- B.
NullPointerException
- C.
ClassCastException
- D.
ArrayIndexOutOfBoundsException
Sign up free to see the answer and a step-by-step explanation.