You need to sign in to do that
Don't have an account?

why we are creating static method under apex class using the developer console.
i dont know why we are creating static method under apex class using the developer console.what is the purpose of creating static method undre the apex class...please help..
When we declare a method or variable as static, it's initialized only once when a class is loaded.
A static method or variable does not require an instance of the class in order to run.
Static methods are generally used as utility methods and never depend on a particular instance member variable value. Because a static method is only associated with a class, it cannot access any instance member variable values of its class.
All Answers
When we declare a method or variable as static, it's initialized only once when a class is loaded.
A static method or variable does not require an instance of the class in order to run.
Static methods are generally used as utility methods and never depend on a particular instance member variable value. Because a static method is only associated with a class, it cannot access any instance member variable values of its class.
thanku for your solution...