Prev Next

Java / Enum

Can we create an enum without constants?

Yes. we can create. However when the enum body has other members such as method, constructor then the first line must have a semicolon ';'.

More Related questions...

Show more question and Answers...


Comments & Discussions