DRAFT
SingleQuoteString
Misconception:
A String literal can be in double quotes ("text"
) or in single quotes ('text'
).
Incorrect
String literals can be in single quotes
Correct
String literals must be in double quotes
CorrectionHere is what's right.
Here is what's right.
In some other programming languages that’s true, but in Java String
literals must be in double quotes.
Language
Java