Last active
June 11, 2019 12:35
-
-
Save donchan922/15592858a2ada6cd8a4c7196e052d37d 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 static void main(String[] args) { | |
Object object = null; | |
String.valueOf(object); // "null"という文字列を返す | |
object.toString(); // NullPointerExceptionが発生する | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment