Skip to content

Instantly share code, notes, and snippets.

@antonarhipov
Created November 21, 2015 22:55
Show Gist options
  • Save antonarhipov/716b708a8b8ff3fe2f21 to your computer and use it in GitHub Desktop.
Save antonarhipov/716b708a8b8ff3fe2f21 to your computer and use it in GitHub Desktop.
NullPointerExceptions puzzle
public class NullPointerExceptionsPuzzle {
public static void main(String[] args) {
try {
throw new NullPointerException("NullPointerException 1");
} catch (NullPointerException e) {
throw new NullPointerException("NullPointerException 2");
} finally {
return;
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment