• Source
    1.  
    2. public class test
    3. {
    4. public test() throws Exception
    5. {
    6. throw new Exception("Fail");
    7. }
    8. public static void main (String[] args)
    9. {
    10. try
    11. {
    12. System.out.println( "Start");
    13. new test();
    14. System.out.println ("Stop");
    15. }
    16. catch (Exception e)
    17. {
    18. System.out.println(e.getMessage());
    19. }
    20. finally
    21. {
    22. System.out.println ("Final");
    23. }
    24. }
    25. }