A string is a data type, but a string literal is when a string is defined literally usually in quotation marks:
String myString = "This is a literal string";
In the example, String is a type, myString is the name of a variable or link, and the text in quotation marks is a literal string.
source share