If a variable is declared as public static varName;, then I can access it from anywhere as ClassName.varName. I am also aware that static members a
*)If a variable is declared as private then it is not visible outside of the class.this is called as datahiding.
*)If a variable is declared as static then the value of the variable is same for all the instances and we no need to create an object to call that variable.we can call that variable by simply
classname.variablename;