Thanks for your reply! Well, is that a rule? I was actually writing the code as I usually write for any other class..first instance varibales, then constructors etc.. enum is also a class, right? Then, why such different behavior? Know any explicit reasons? Thanks again!
Java requires that the constants be defined first, prior to any fields or methods. Also, when there are fields and methods, the list of enum constants must end with a semicolon.
Note: The constructor for an enum type must be package-private or private access. It automatically creates the constants that are defined at the beginning of the enum body. You cannot invoke an enum constructor yourself.