Static variable is a global variable for
all instances of a class. If you have
a private static variable and change it
in one instance, all other instance will
know the change too.
Ok, good point. Thanks.
If we add a "final" keyword on it, so no change will be allowed on private static final variable,
is there still any benefit to do so?
Thanks.