Last active
October 7, 2021 11:34
-
-
Save nbness2/50ef5d32b29260b329c830219df359f0 to your computer and use it in GitHub Desktop.
Java nullable string declaration
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
String nullableString; | |
nullableString = "not null"; | |
nullableString = null; // this is fine :) | |
System.out.println(nullableString); // working as expected! |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment