adspace


What is the use of static variable?

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


Please Help Members By Posting Answers For Below Questions

What were you doing before sfdc development?

522


What is workflow rule and workflow actions? : salesforce workflows and approval process

574