String in Java is an Object that represents the sequence of characters. All String literals used in the Java programs like “Hello” or “World” are implemented as String objects.
The String in Java is immutable. That means the value of the String object cannot be changed once it is created. When you try to alter the value of the String object, a new object is created and assigned back to the reference.