The throws declaration means it might throw an ArithmeticException or an ArrayIndexOutOfBoundsException, not both.
By the way: it is not usually necessary to declare unchecked Exceptions; those ought to be described with @throws tags in the documentation comments instead.