Is there any other type of static variable in Java than static class variable?
4 answers
There is one field here that can be static and not associated with a class: interface constants , which are both static and finite (and therefore not exactly "variable", since they do not change).
You can use them even without initializing the interface implementation, so they are not necessarily associated with a class at all. I believe they are initialized when using the interface .
+2
source to share