| 1. |
What Is The Scope Of Static Variable? |
|
Answer» 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. 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. |
|