It’s initialized to null if you do nothing, as are all reference types.
More Related Contents:
- String class replace() method [closed]
- Converting a string into an List [closed]
- Can you explain the output of the following source code?
- Replace a character at a specific index in a string?
- Determine if a String is an Integer in Java [duplicate]
- How can a string be initialized using ” “?
- Strings are objects in Java, so why don’t we use ‘new’ to create them?
- Why StringBuilder when there is String?
- What is the backslash character (\\)?
- How to convert object array to string array in Java
- How to capitalize the first letter of a String in Java?
- How to convert hex string to Java string?
- How do you pass a string from one activity to another? [duplicate]
- How does Java store Strings and how does substring work internally? [closed]
- Creating Unicode character from its number
- Why String.replaceAll() in java requires 4 slashes “\\\\” in regex to actually replace “\”?
- Android – how to replace part of a string by another string?
- String equality vs equality of location
- Why cannot cast Integer to String in java?
- Evaluate String as a condition Java
- How can I find whitespace in a String?
- Converting String Array to an Integer Array
- How to find all permutations of a given word in a given text?
- toUpperCase in Java does not work [duplicate]
- Trim leading or trailing characters from a string?
- The method format(String, Object[]) in the type String is not applicable for the arguments (…)
- Length of the String without using length() method [closed]
- Java, Check if a String is a palindrome. Case insensitive
- How String Literal Pool Works
- Java replace all square brackets in a string