in JAVA by
Q:
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

+2 votes
asked May 13, 2021 in JAVA by rajeshsharma
+2 votes
asked May 13, 2021 in JAVA by rajeshsharma
0 votes
asked May 4, 2021 in JAVA by SakshiSharma
0 votes
asked Apr 10, 2021 in JAVA by Robindeniel
...