import java.io.*;
public class Sarim {
public static void main(
String arg[]) {
doThis();
}
public static void doThis() {
try {
throw new ArithmeticException();
System.out.println("this is mystery");
}
catch(ArithmeticException ae) {
System.out.println("since i caught");
}
System.out.println("it should now run");
}
}
// I created this code, how come IT IS GIVING ME A COMPILER ERROR SAYING THAT THE PRINTLN STATEMENT IS NOT REACHED, IT IS REFERRING TO THE ONE SAYING "..mystery.." ?
since there is arrangement for catching this, shouldnt the code progress afterwards, printing the other stuff atleast ??