What’s the use of static variables?
Static variables are used for maintaining a common state of certain data which is modifiable and accessible by all instances of a class.