What is enum value in Java?

An enum is a special “class” that represents a group of constants (unchangeable variables, like final variables) . To create an enum , use the enum keyword (instead of class or interface), and separate the constants with a comma.

Sizin İçin Seçtik  Can enum have multiple values python?

Leave a Reply

Your email address will not be published. Required fields are marked *