What is the use of static variable?
Answer / Shuchi Gupta
In Salesforce Apex, a static variable is a variable that belongs to a class, not an instance. This means it can be accessed and modified directly by using the class name without creating an object.nnStatic variables are useful when we want to maintain a single value for all instances of the class or when we need to store values that do not change between method calls within the same class.
| Is This Answer Correct ? | 0 Yes | 0 No |
What is the difference between Trigger and Workflow?
What is the use of “for update” in soql?
What is the Apex Trigger in Salesforce?
What is the use of the <aura:method> tag in lightning ?
How will you deploy? Have you ever involved in deployment?
If there is a custom object with records, is it possible to create a field with master-detail relationship for this object?
What is page layout in salesforce? What are the record types?
How many soql we can perform per transaction?
What is the difference between 15 digit and 18 digit ids in salesforce?
What is json? : salesforce integration
What is an app in salesforce?
What is wrapper class?