Each object of a class has its own copy of all instance variables of the class. However, in certain cases, all calss should share only one copy of particular variable. Such variables are called static variable.
Although static variables might seem like global variables(variables that canb be referenced anywhere in a program) in other languages, static need not be globally accessible, static variables have class scope.