throw exception based on exception code example
Example: java return exception
void testMethod() throws ArithmeticException, ArrayIndexOutOfBoundsException {
// rest of code
}
void testMethod() throws ArithmeticException, ArrayIndexOutOfBoundsException {
// rest of code
}