Last active
November 23, 2015 22:39
-
-
Save AnnaBoro/ec65079b04dee79ee0ab to your computer and use it in GitHub Desktop.
home1-lesson6
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 Home1 { | |
public static void main(String[] args) { | |
tryReturn(); | |
System.out.println("end"); | |
} | |
public static void tryReturn() { | |
try{ | |
return; | |
} | |
catch (Exception e) { | |
e.printStackTrace(); | |
} | |
finally { | |
System.out.println("I want to be executed"); | |
} | |
System.out.println("in method"); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment