0 votes
in JAVA by
What is enum in java?

1 Answer

0 votes
by

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.

Related questions

+3 votes
asked May 13, 2021 in JAVA by rajeshsharma
+2 votes
asked May 13, 2021 in JAVA by rajeshsharma
...