Created
April 29, 2020 14:41
-
-
Save singhrahuldps/720265f23bca1ce9a4fd0082eff920c5 to your computer and use it in GitHub Desktop.
This file contains hidden or 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
| // 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