@@ -0,0 +1,619 @@
+class ExceptionHandling%0A%7B%0A    public static void main(String%5B%5D args)%0A    %7B%0A        try%0A        %7B%0A            String s = null;%0A %0A            System.out.println(s.length());   //This statement throws NullPointerException%0A %0A            System.out.println(%22This statement will not be executed%22);%0A        %7D%0A        catch(Exception ex)%0A        %7B%0A            System.out.println(ex);    //Output : java.lang.NullPointerException%0A %0A            ex.printStackTrace();     //This prints stack trace of exception%0A        %7D%0A        finally%0A        %7B%0A            System.out.println(%22This block is always executed%22);%0A        %7D%0A    %7D%0A%7D%0A

Create stacktrace.java