Created
February 19, 2017 13:45
-
-
Save Fleshgrinder/02ab31a111db6966d38e1ad25e8fdf69 to your computer and use it in GitHub Desktop.
The Case of the Null Reference: Code Listing 1
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 Main { | |
public static void main(String[] args) { | |
f(null); | |
} | |
private static int f(Integer x) { | |
return x + 42; | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment