public class MyClass {
public static void main(String args[]) {
try {
int n = 43 / 0;
} catch (ArithmeticException e) {
System.out.println(e);
}
System.out.println("After Exception");
}
}
/*
run:
java.lang.ArithmeticException: / by zero
After Exception
*/