Programming MisconceptionsHomeMisconceptionsConceptsLanguagesTextbooksContributorsAbout
HomeConcepts
String

String

A string is a sequence of characters.

Related concepts:  ValueTypeSequence

Closest Wikipedia entry:  String (computer science)

Misconceptions about String
18 documented Misconceptions

Any LanguageJavaJavaScriptPythonScratch
Check Yourself
Misconception
ArithmeticPlusPrecedes
Addition has higher precedence than string concatenation
Misconception
CharNotNumeric
Char is not a numeric type
Misconception
LiteralString
When passing a literal string as argument to a method, no quotes are needed
Misconception
NoCallOnStringLiteral
One cannot invoke methods on String literals
Misconception
NoCharEscape
\ is a normal character in char and String literals
Misconception
NoStringToString
One cannot invoke toString() on a String
Misconception
SingleQuoteString
String literals can be in single quotes
Misconception
StringLengthField
One can know the length of a String object by accessing its length field
Misconception
StringLiteralNoObject
One needs to call the String constructor to get a String object from a literal
Misconception
StringPlusStringifiesExpression
String concatenation stringifies non-String operand expressions
Misconception
StringRepetitionOperator
The multiplication operator can repeat a String a number of times
Misconception
ToStringPrints
Invoking toString() prints something

Find Misconceptions by...

Concept
Programming Language
Notional Machine
Textbook

About

About This Site
Structure and Content of the Inventory
Contributors