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
pavan Kumar.vpavan Kumar.v 

string type '('+'\''+'Month'+'\''+')'

Hi all,
Can anyone please explain what they are trying to achieve here 
string str = '('+'\''+'Month'+'\''+')'
what is the outcome of this?
and how can we achieve this and is there any reference to these types of tips??
Best Answer chosen by pavan Kumar.v
Sai PraveenSai Praveen (Salesforce Developers) 
Hi Pavan Kumar,

The output of the above string is ('Month') . 

You can check this with putting system.debug and print the value and check it.

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

Thanks,
 

All Answers

Sai PraveenSai Praveen (Salesforce Developers) 
Hi Pavan Kumar,

The output of the above string is ('Month') . 

You can check this with putting system.debug and print the value and check it.

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

Thanks,
 
This was selected as the best answer
pavan Kumar.vpavan Kumar.v
Hi Sai,
Can you please reference of any websites or blog 
where I can learn these concepts!
Sai PraveenSai Praveen (Salesforce Developers) 
Hi Pavan,

Can you check the below article by salesforce which shows all the datatypes we have in salesforce. 

You can check for string datatype in this.

https://developer.salesforce.com/docs/atlas.en-us.232.0.apexcode.meta/apexcode/langCon_apex_primitives.htm

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


Thanks,