String
A string is a sequence of characters.
Related concepts: ValueTypeSequence
Closest Wikipedia entry: String (computer science) — In computer programming, a string is traditionally a sequence of characters, either as a literal constant or as some kind of variable. The latter may allow its elements to be mutated and the length changed, or it may be fixed (after creation). A string is generally considered as a data type and is often implemented as an array data structure of bytes (or words) that stores a sequence of elements, typically characters, using some character encoding.
Misconceptions about String17 documented Misconceptions
Check YourselfArithmeticPlusPrecedes — Java
Addition has higher precedence than string concatenationCharNotNumeric — Java
Char is not a numeric typeCharType — JavaScript
A single character is of type charIdentifierAsStringInBracketNotation — JavaScript
An identifier used to access a property with the bracket notation is treated as a stringLiteralString — Java
When passing a literal string as argument to a method, no quotes are neededNoCallOnStringLiteral — Java
One cannot invoke methods on String literalsNoCharEscape — Java
\ is a normal character in char and String literalsNoSequenceRepetition — Python
There is no operator that repeats sequencesNoStringToString — Java
One cannot invoke toString() on a StringPlusConcatenatesNumbers — Python
The plus operator can concatenate strings and numbersSingleQuoteString — Java
String literals can be in single quotesStringLengthField — Java
One can know the length of a String object by accessing its length fieldStringLiteralNoObject — Java
One needs to call the String constructor to get a String object from a literalStringPlusStringifiesExpression — Java
String concatenation stringifies non-String operand expressionsStringRepetitionOperator — Java
The multiplication operator can repeat a String a number of timesStringRepetitionOperator — JavaScript
One can repeat a String by multiplying it with a numberToStringPrints — Java
Invoking toString() prints something