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
ArithmeticPlusPrecedesJava
Addition has higher precedence than string concatenation
Misconception
CharNotNumericJava
Char is not a numeric type
Misconception
LiteralStringJava
When passing a literal string as argument to a method, no quotes are needed
Misconception
NoCallOnStringLiteralJava
One cannot invoke methods on String literals
Misconception
NoCharEscapeJava
\ is a normal character in char and String literals
Misconception
NoStringToStringJava
One cannot invoke toString() on a String
Misconception
SingleQuoteStringJava
String literals can be in single quotes
Misconception
StringLengthFieldJava
One can know the length of a String object by accessing its length field
Misconception
StringLiteralNoObjectJava
One needs to call the String constructor to get a String object from a literal
Misconception
StringPlusStringifiesExpressionJava
String concatenation stringifies non-String operand expressions
Misconception
StringRepetitionOperatorJava
The multiplication operator can repeat a String a number of times
Misconception
ToStringPrintsJava
Invoking toString() prints something
Misconception
CharTypeJavaScript
A single character is of type char
Misconception
IdentifierAsStringInBracketNotationJavaScript
An identifier used to access a property with the bracket notation is treated as a string
Misconception
StringRepetitionOperatorJavaScript
One can repeat a String by multiplying it with a number
Misconception
NoSequenceRepetitionPython
There is no operator that repeats sequences
Misconception
PlusConcatenatesNumbersPython
The plus operator can concatenate strings and numbers
Misconception
StringLiteralNoObjectPython
One needs to call str to instantiate a str object from a string literal