codegen: handle exceptions of a method
[mate.git] / tests / Exception4.java
1 package tests;
2
3 public class Exception4 {
4         public static void main(String []args) {
5                 try {
6                         throw new NullPointerException();
7                 } catch (NullPointerException _) {
8                         System.out.printf("NullPointerException\n");
9                 } finally {
10                         System.out.printf("it's finally over\n");
11                 }
12
13                 try {
14                         System.out.printf("I'm fine\n");
15                 } finally {
16                         System.out.printf("o rly\n");
17                 }
18                 System.out.printf("hmmm\n");
19         }
20 }