X-Git-Url: http://wien.tomnetworks.com/gitweb/?p=mate.git;a=blobdiff_plain;f=tests%2FException4.java;fp=tests%2FException4.java;h=03495fdbb7147cd7b6993153f436f12b1a4537ae;hp=0000000000000000000000000000000000000000;hb=c541c18161f42753454ab94bbc5e1a43ef89ae40;hpb=de9b805eb93b4a39c03e9f7e1cda62c674c87fe3 diff --git a/tests/Exception4.java b/tests/Exception4.java new file mode 100644 index 0000000..03495fd --- /dev/null +++ b/tests/Exception4.java @@ -0,0 +1,20 @@ +package tests; + +public class Exception4 { + public static void main(String []args) { + try { + throw new NullPointerException(); + } catch (NullPointerException _) { + System.out.printf("NullPointerException\n"); + } finally { + System.out.printf("it's finally over\n"); + } + + try { + System.out.printf("I'm fine\n"); + } finally { + System.out.printf("o rly\n"); + } + System.out.printf("hmmm\n"); + } +}