Instance members belong to each object and can differ per object. Static (class) members belong to the class itself — there is exactly one copy, shared by all instances, and you access them without creating an object.
One copy vs. one per object
{
;
id;
Counter() {
total++;
id = total;
}
{ total; }
}
(); ();
System.out.println(Counter.getTotal());
