Skip to content

Instantly share code, notes, and snippets.

@a1exlism
Created September 20, 2019 13:36
Show Gist options
  • Save a1exlism/1288c57866352364c11a7e057fe3323f to your computer and use it in GitHub Desktop.
Save a1exlism/1288c57866352364c11a7e057fe3323f to your computer and use it in GitHub Desktop.
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);
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment