The most common use of the string class is manipulation and holding of the text strings, in Java programs. In case of automatically imported standard java.lang packages this is usually found, therefore nothing special is needed to use it.
String class can be used in its simplest form by typing text that is usually double quotes surrounded. This is what is known as String literal.
"This is a Java String"
Anywhere a String object is needed, string