Created
November 23, 2015 22:46
-
-
Save AnnaBoro/654c9d912e5f50c6a6f5 to your computer and use it in GitHub Desktop.
Home2-frame4
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
package lesson6; | |
public class Home2 { | |
public static void main(String[] args) { | |
tryException(); | |
System.out.println("end"); | |
} | |
public static void tryException() { | |
try { | |
throw new Exception(); | |
} | |
catch (Exception e) { | |
throw new IllegalStateException(); | |
} | |
finally { | |
System.out.println("I want to be printed"); | |
} | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment