Prasad Posani wrote:Why static methods cannot be declared in a constantspecific class body of the enum constants
What would it mean? Why would you need it?
By "constantspecific class body", I assume you mean the code (if any) associated with one particular instance of an enum class. Like
Why would you ever need or want to put a static method inside the places associated with specific instances? The point of the "static" keyword is that it's not associated with
any instance. It's contradictory.