SingleQuoteString
DRAFT

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

Correction
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

Concepts

Expressible In

Related Misconceptions

Stay up-to-date

Follow us on  twitter to hear about new misconceptions.