String

A string is a sequence of characters.

Related concepts:  ValueTypeSequence

Closest Wikipedia entry:  String (computer science)

Misconceptions about String
18 documented Misconceptions

Check Yourself
Misconception
ArithmeticPlusPrecedes — Java
Addition has higher precedence than string concatenation
Misconception
CharNotNumeric — Java
Char is not a numeric type
Misconception
LiteralString — Java
When passing a literal string as argument to a method, no quotes are needed
Misconception
NoCallOnStringLiteral — Java
One cannot invoke methods on String literals
Misconception
NoCharEscape — Java
\ is a normal character in char and String literals
Misconception
NoStringToString — Java
One cannot invoke toString() on a String
Misconception
SingleQuoteString — Java
String literals can be in single quotes
Misconception
StringLengthField — Java
One can know the length of a String object by accessing its length field
Misconception
StringLiteralNoObject — Java
One needs to call the String constructor to get a String object from a literal
Misconception
StringPlusStringifiesExpression — Java
String concatenation stringifies non-String operand expressions
Misconception
StringRepetitionOperator — Java
The multiplication operator can repeat a String a number of times
Misconception
ToStringPrints — Java
Invoking toString() prints something
Misconception
CharType — JavaScript
A single character is of type char
Misconception
IdentifierAsStringInBracketNotation — JavaScript
An identifier used to access a property with the bracket notation is treated as a string
Misconception
StringRepetitionOperator — JavaScript
One can repeat a String by multiplying it with a number
Misconception
NoSequenceRepetition — Python
There is no operator that repeats sequences
Misconception
PlusConcatenatesNumbers — Python
The plus operator can concatenate strings and numbers
Misconception
StringLiteralNoObject — Python
One needs to call str to instantiate a str object from a string literal