In Java, when should static non final variables be used?
For example
private static int MY_VAR = 0;
Obviously we are not talking ab
I think wrapping your statics and providing access via singletons (or at a minimum via static methods) is generally a good idea, since you can better control access and avoid some race condition and synchronization issues.