Static keyword in programming

Static variable is a variable that has been allocated statically. Static variable lifetime extends across the entire run of the program.

Things to remember while using Static keyword
  1. Static methods can be called only with the class name not with the class object instance.
  2. Static variable values lifetime is until the end of the execution.