adspace
Answer Posted / 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 |
Post New Answer View All Answers