This week's book giveaway is in the OCAJP 8 forum. We're giving away four copies of OCA Java SE 8 Programmer I Study Guide and have Edward Finegan & Robert Liguori on-line! See this thread for details.
Helen Ma wrote:Enum is a special type of class, according to either KB or Mughal / Rasumenssen / some Java tutorial online.
So, if you have a class (not inner) , you cannot mark it static , protected or private.
For final, I am not sure. Maybe we cannot extend a Enum and it is final implicitly. And for the same reason, it should not be abstract.
Thanks Helen but my question was something different
Joined: Nov 01, 2011
As I remember, the enum defined inside a class is implicitly static. By you can try to see if it compiles when this enum is declared protected, private, final.....
As I remember, the enum insdie a class can be protected/private.