Skip to content

Instantly share code, notes, and snippets.

@sabate
Created May 24, 2013 14:45
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save sabate/5644037 to your computer and use it in GitHub Desktop.
Save sabate/5644037 to your computer and use it in GitHub Desktop.
Unreachable code
public abstract class A26D{
public abstract void start() throws ArithmeticException;
public static void main(String args[]){
A26D a=new A26D(){
public void start() throws ArithmeticException{
System.out.print(1);
try{
System.out.print(2);
throw new ArithmeticException();
System.out.print(3);
}catch(Exception e){
System.out.print(4);
}finally{
System.out.print(5);
}
}
};
a.start();
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment