Skip to content

Instantly share code, notes, and snippets.

@a1exlism
Created September 20, 2019 13:36
Show Gist options
  • Select an option

  • Save a1exlism/1288c57866352364c11a7e057fe3323f to your computer and use it in GitHub Desktop.

Select an option

Save a1exlism/1288c57866352364c11a7e057fe3323f to your computer and use it in GitHub Desktop.

Revisions

  1. a1exlism created this gist Sep 20, 2019.
    17 changes: 17 additions & 0 deletions java_exceptions.java
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,17 @@
    public class ThrowException {
    public static void main(String args[]) {
    try {
    process1();
    } catch (Exception e) {
    e.printStackTrace();
    }
    }

    static void process1() {
    process2();
    }

    static void process2() {
    Integer.parseInt(null);
    }
    }