Created
December 19, 2014 01:14
-
-
Save frsyuki/d4dee313a475e36c17fe to your computer and use it in GitHub Desktop.
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 class X { | |
public static void main(String[] args) { | |
System.out.println("doit: "+doit()); | |
} | |
public static int doit() { | |
try { | |
System.out.println("try"); | |
throw new RuntimeException("exception"); | |
} finally { | |
System.out.println("finally"); | |
return 1; | |
} | |
} | |
} | |
// [frsyuki@xcore ~]$ javac X.java | |
// [frsyuki@xcore ~]$ java -cp . X | |
// try | |
// finally | |
// doit: 1 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment