Segal:
Expanding on Mark's comment, in Java, a
string literal is represented in a program's
source code by enclosing the desired string within quotes. In the compiled version of the program, a
String object is created that corresponds to that string literal. This object
does not include the quotes.
For example, consider this line:
Here, "a
test string" is a string literal. However, what
str refers at runtime will be a
String object that contains the characters
a test string. It will not include quotes. Thus, a quoted string is simply a source code mechanism.