I'm reading the K&B Java 5 Study Guide and I have a doubt. If I declare an ENUM inside a class, I can use the static modifier, but if I declare an ENUM outside, I still could use that ENUM inside a static method? (I know that I can't mark an outside ENUM as static).
Joined: Aug 25, 2006
yes you can use enums outside a class like a normal class
Prints out CORAL DAISY ALGA
all events occur in real time
Joined: Jul 30, 2004
Thank you for the reply. The book don't mention that! I'll create some code to better understand that topic.