title: What's the difference between the static variable and the global variable (Java)?
body: <p>I'm so confused by the difference between static variables and the global variables. When I browsing a Java textbook today, my eyes were caught by "Variables declared as static are, essentially, global variables. When an object is declared, no copy of a static variable is made." I am crystal clear about why static variable is shared by all objects in its class, but I don't get why static variables are global variables. In my understanding, the static variables could be only considered as "global" in its class.</p>