Created
December 5, 2012 17:44
-
-
Save zbigniewTomczak/4217825 to your computer and use it in GitHub Desktop.
System.exit in try block
This file contains hidden or 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 SystemExitTry { | |
| public static void main(String[] args) { | |
| try { | |
| System.out.println("try"); | |
| System.exit(0); | |
| throw new RuntimeException(); | |
| } catch (Exception e) { | |
| System.out.println("catch"); | |
| } finally { | |
| System.out.println("finally"); | |
| } | |
| } | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment