Skip to content

Instantly share code, notes, and snippets.

@nbness2
Last active October 7, 2021 11:34
Show Gist options
  • Save nbness2/50ef5d32b29260b329c830219df359f0 to your computer and use it in GitHub Desktop.
Save nbness2/50ef5d32b29260b329c830219df359f0 to your computer and use it in GitHub Desktop.
Java nullable string declaration
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