What are static variables and why use them?
A class variable and NOT an instance variable, that is, a variable accessible by all class members and NOT by the objects created by the class itself. In this way, before an object is created, the static variable can be called and used. It is also retained on the server until the application is complete, meaning, even though a page may be loaded and the class destroyed, the variable still exists in memory in case another class wants to use it. It is beneficial to use because it uses less memory (all subsequent calls simply get the original variable).