answersLogoWhite

0


Best Answer

Yes. A single-quoted literal must be a valid character (byte or char) type. It is not a String type. There is no such thing as a single-quoted String literal.

'A' - evaluates to the primitive char type

"A" - evaluates to a String type

'ABC' - causes compiler error because it isn't a single character

User Avatar

Wiki User

11y ago
This answer is:
User Avatar

Add your answer:

Earn +20 pts
Q: Do single quoted string literals have any characteristics difference from those of double quoted string literals?
Write your answer...
Submit
Still have questions?
magnify glass
imp
Related questions

Do single-quoted string literals have any characteristics difference from those of double-quoted string literals?

The literals with single quotes are Characters and can have a width of only one. Ex: 'y' or 'a' etc Strings cannot be declared using single quotes. They have to be declared with double quotes.


What is difference between the annual percentage rate and the quoted rate?

The quoted reate is based on continuos compound interest. exp If quoted rate is 6%, then the annual rare is ....e^(0.06) = 1.06183 - 1 = = 6.183%


How does perl interpretor know that string has ended?

A Perl string begins and ends with a delimiter. This can either be a single-quote ('), double-quote (") or user defined quote (q): $single = 'This string is single-quoted'; $double = "This string is double-quoted"; $user = q^This string is delimited by the caret symbol^


What is the difference between listed and quoted investments?

A listed investment is a closed-end investment, while a quoted investment has visible market valuation. In a listed investment the manager does not have to worry about funds being withdrawn.


How do you figure the percentage paid on a total amount when you have the amount paid?

My mother has an S.B.L.I. life insurance since 1985. The contract was for $3250 at $22 monthly payment. When calculated she has paid double the amount of the contract, yet she's quoted a value of $3050. Why the difference and what is she legally entitled to?


What is the value of a Defiance Anti-Bandit 20 gauge double barrel shotgun?

A gun like this was quoted on "Lords of War" for $8,000


Who quoted it and when?

Who quoted what? and what are you expecting are answer to be!


What is the difference between adult and fetal wrist and ankle?

My name is jim not sam Im not green im purple Quoted by Benj


What did Ernie Banks say regarding double play?

Nothing. He is famously quoted "Lets Play Two" as in a double header....except if you ask any of his teamates, he was the one guy who hated doubleheaders the most!


What are examples etho?

Ethos is a person's or organization's personal characteristics and ethical standings. They are the guiding beliefs of that person or organization. For example, the ethos of a police force is commonly quoted as "to protect and serve."


When was The Blythes Are Quoted created?

The Blythes Are Quoted was created in 2009.


What is the difference between a limited company any a P.L.C.?

a public limited company can offer to sell shares to the public where as a private limited company can not. The other differences between PLC and LTD is that a private company is quoted on stock exchange where as a public limited company is not quoted on stock exchange.