how to throw the same exception from a function recieved in exception objet in java code example
Example: java return exception
void testMethod() throws ArithmeticException, ArrayIndexOutOfBoundsException {
// rest of code
}
void testMethod() throws ArithmeticException, ArrayIndexOutOfBoundsException {
// rest of code
}