Nesting try/catch Statements
Nesting try/catch Statements
<%
try {
try {
int c[] = {0, 1, 2, 3};
c[4] = 4;
} catch(ArrayIndexOutOfBoundsException e) {
out.println("Array index out of bounds: " + e);
}
} catch(ArithmeticException e) {
out.println("Divide by zero: " + e);
}
%>