Created
September 20, 2019 13:36
-
-
Save a1exlism/1288c57866352364c11a7e057fe3323f to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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