static meaning in java
What are static variable in Java, and what are they for? A static variable is one that's associated with a class, not objects of that class. Let's take a look at an example. To keep things as simple as possible, we'll use a public static variable.