Strings are sequences of characters. Because each character has an index position in the string, this is similar to an array of characters. String variables are not variables of a primitive type. String variables have a set of operators that enable the manipulation of strings.
In Java, strings are considered objects of class String. This class is available in the Java class library. To manipulate strings in Java, various methods of class String are used.
Strings cannot be modified, Java provides the StringBuffer, another library class that can be instantiated to create modifiable strings. By using the various methods of this class, strings can be manipulated and modified.