Yes, all class hierarchies (the same classes and all child classes) use the same static variable. Since JAVA does not support a global variable, but you can use a static variable as a global variable without violating OOP concepts.
If you changed the value of a static variable from one of the classes, then the same changed value was replicated to all classes using this variable.
source
share