answersLogoWhite

0


Best Answer

This was simply the choice of the language designers, who probably decided to carry over that convention from the C/C++ languages.

User Avatar

Wiki User

13y ago
This answer is:
User Avatar

Add your answer:

Earn +20 pts
Q: Why do you use single quotation for declaring a single character in java programs?
Write your answer...
Submit
Still have questions?
magnify glass
imp
Related questions

What is the rule for writing a quotation within a quotation?

Use single quotation marks to indicate a quote within a quote.If you're using a quote that contains a quote you'll need to surround the embedded quote with single quotation marks.


How do you use the word already in quotation marks?

If a word is in quotation marks, and you're quoting it, use single quotation marks to indicate an embedded quotation.


If a proper or nickname is part of a quote do you use single quotation marks?

If a proper name or nickname is part of a quote and requires quotation marks, use double quotation marks for the overall quote and single quotation marks within the quote for the proper name or nickname.


Why do apostrophes look like a single quotation mark?

Apostrophes and single quotation marks look similar because they evolved from the same mark in the Latin script, known as the virgule. Over time, the virgule was adapted to serve multiple functions, including denoting possession (apostrophe) and quotation. This convergence resulted in the similar appearance of apostrophes and single quotation marks.


What is the use for single quotation marks?

Single quote marks are used for a quote within a quote.


What is a data string?

A data type consisting of more than one letter, like a word or a sentence. A single letter is normally known as a character data type. Normally strings are enclosed in double quotation marks and single letters are enclosed in single quotations marks: 'a' "animal"


How do you make a single opening quote and a single closing quote in Windows?

Use an apostrophe to create the single quotation mark.


When a quotation appears within a quotation what the punctuation marks?

The inner quotation is treated just like the outer quotation in terms of capitalization, commas etc., but the quotation marks are single rather than double. e.g. She replied, "He only exclaimed, 'I don't like you anymore!' and walked away." Before both quotations, the inner and the outer, there is a comma. The punctuation completing each quotation is still within the appropriate quotation marks - the exclamation point at the end of the internal exclamation is inside the internal quotations. However, the quotation marks for the inner quotation are single (like apostrophes - ' ) instead of double (as usual - " ).


How many bytes are occupied by declaring following array of characters?

A single-byte type of array has 1 byte per character; a wide-character array has 2 bytes per character of storage. Without seeing the exact definition it cannot be determined what the actual size of the array would be.


When quoting what someone has said the chapter recommends?

single quotation marks


How do you create a single opening quote and a single closing quote in Microsoft Word?

Use an apostrophe to create the single quotation mark.


Can a go inside a closing quotation mark?

Typically, only full or partial sentences will be put in quotation marks. Very rarely will there be quotation marks around a single article, however, it can happen.