Say we wanted to throw an ArrayIndexOutOfBoundsException
with the message "this array was out of bounds!". What is the right way to do this?
throw new ArrayIndexOutOfBoundsException("this array was out of bounds!");
- throw new ArrayIndexOutOfBoundsException();
- throw new Exception(ArrayIndexOutOfBoundsException, "this array was out of bounds!");
There are no hints for this question