«^»
3.1. Creating an object of the class String

Although:

String tName = new String("James Gosling");
is the obvious way of creating a string object and making tName point to it, for strings there is an alternative syntax for the class instance creation expression. You can use "James Gosling" instead of using new String("James Gosling") as in:
String tName = "James Gosling";
So you have a choice here: both forms of syntax can be used to create new string objects.

A string literal can include characters that are non-graphic characters. This is done by using an escape sequence. An escape sequence is also necessary for putting a single quote, a double quote or a backslash in a string:

System.out.println("Lister glared at Rimmer.  \"You really are a smeghead\", he said.");

We will sometimes need to represent a string that has no characters. The string literal "" or the expression new String("") can be used. Such a string is called the empty string.