The soul is dyed the color of its thoughts. Think only on those things that are in line with your principles and can bear the light of day. The content of your character is your choice. Day by day, what you do is who you become. Your integrity is your destiny - it is the light that guides your way. - Heraclitus
I partly agree, it is the same as default access, but why is the protected modifier allowed for enum variables when enums can't be "subclassed"? I thought the main principle was that modifiers that make no sense or introduce redundancy are not allowed, just like classes can't be protected or private. In this case, protected is redundant, because it's the same as having no modifiers (default access).
But then again, protected variables are allowed in final classes, and enums can be seen as a special kind of final classes. This brings me to another question: can you always choose access modifiers for class and instance variables regardless of which modifiers the class has? [ August 31, 2007: Message edited by: Trond Valen ]