The Static Modifier
A Static method or variable applies to the class as a whole, not to
a particular object instance.
- A static method can be called even when there is no object of that
class available.
- An anonymous static code block within a class will be called before
any other code in that class. This can be used for class-wide initialisation.
- A static variable may be used, for example, to keep count of how many
objects of a class have been created.