Wednesday, January 22, 2014

What is the scope of static variable

What is the scope of static variable

When you declare a method or variable as static, it’s initialized only once when a class is loaded. Static variables aren’t transmitted as part of the view state for a Visualforce page.

Static variables are only static within the scope of the request. They are not static across the server, or across the entire organization.
  

No comments:

Post a Comment