function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
Siva Krishna KondapalliSiva Krishna Kondapalli 

Usage of Different types of Quotations (Single Quotes and Double Quotes) for declaring Strings in the Code?

Usage of Different types of Quotations (Single Quotes and Double Quotes) for declaring Strings in the Code? What value do they bring value to the variable or string??

Ex - 'Salesforce' vs "Salesforce"
Sai PraveenSai Praveen (Salesforce Developers) 
Hi,

In Apex to define a string or assign a value to string we use single quotation only. Double quotation is not supported in apex.

But where as in Salesforce formulas we can use both single and double quotations.

Let me know if you face any issues.

If this solution helps, Please mark it as best answer.

Thanks,