A string is a collection of any keyboard characters such as "I love chocolate 100 times more than you !!!"
Where a String has not been assigned a value, by default it's value is null.
In the example below, 2 Strings are created (lines 1 and 2).
The 3rd statement concatenates (joins) the 2 Strings together (using the addition character).
The fourth statement returns the number of characters in the String called firstName, by calling the String length() function (all Strings have this function, it returns an int).
The fifth line finds the first character of the String by calling the String charAt() function (all Strings have this function, returns the character at the specified position).
The final statement concatenates all of the values together and prints to screen.
The output:
A variable, such as String, can be declared in one statement and assigned a value in another statement, as below:
String myString;
myString = "This is a String!";
...or it can be declared and assigned a value in a single statement:
String myString = "This is a String!";
Literal String values (the actual charcters) are always enclosed in double quotation marks.
See also: "Strings (The Java™ Tutorials > Learning the Java Language > Numbers and Strings)" ( http://bit.ly/K4kbDz )
"String (computer science) - Wikipedia, the free encyclopedia" ( http://bit.ly/AgRVuH )
Here's a cat:

