Created
May 24, 2013 14:45
-
-
Save sabate/5644037 to your computer and use it in GitHub Desktop.
Unreachable code
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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