Last modified on 24 May 2009, at 10:15


Quotes in computer programming come in two basic kinds: the double quote (") and the single quote ('). Non-programmers call these the quotation mark and the apostrophe.

In Java, a String is specified by enclosing text in double quotes, while a single character is enclosed in single quotes. Special characters such as the tab are marked with a backslash (see escape character). Characters so marked can be used in double quotes for a String, or in single quotes for a char.