Skip to content

Instantly share code, notes, and snippets.

@singhrahuldps
Created April 29, 2020 14:41
Show Gist options
  • Select an option

  • Save singhrahuldps/720265f23bca1ce9a4fd0082eff920c5 to your computer and use it in GitHub Desktop.

Select an option

Save singhrahuldps/720265f23bca1ce9a4fd0082eff920c5 to your computer and use it in GitHub Desktop.
// Strings can be null
String string = null;
System.out.println(string);
// Strings are immutable i.e. their value once set cannot be changed;
string = "This is a string.";
System.out.println(string);
// String class also has some helpful functions
System.out.println(string.toUpperCase());
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment