Skip to content

Instantly share code, notes, and snippets.

@AnnaBoro
Last active November 23, 2015 22:39
Show Gist options
  • Save AnnaBoro/ec65079b04dee79ee0ab to your computer and use it in GitHub Desktop.
Save AnnaBoro/ec65079b04dee79ee0ab to your computer and use it in GitHub Desktop.
home1-lesson6
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