String
A string is a sequence of characters.
Related concepts: ValueTypeSequence
Closest Wikipedia entry: String (computer science)
Misconceptions about String18 documented Misconceptions
Check YourselfArithmeticPlusPrecedes
Addition has higher precedence than string concatenation
CharNotNumeric
Char is not a numeric type
LiteralString
When passing a literal string as argument to a method, no quotes are needed
NoCallOnStringLiteral
One cannot invoke methods on String literals
NoCharEscape
\ is a normal character in char and String literals
NoStringToString
One cannot invoke toString() on a String
SingleQuoteString
String literals can be in single quotes
StringLengthField
One can know the length of a String object by accessing its length field
StringLiteralNoObject
One needs to call the String constructor to get a String object from a literal
StringPlusStringifiesExpression
String concatenation stringifies non-String operand expressions
StringRepetitionOperator
The multiplication operator can repeat a String a number of times
ToStringPrints
Invoking toString() prints something