Enums in Java
Vlad Voytenko Vlad Voytenko
6.9K subscribers
290 views
0

 Published On Jun 10, 2021

Enums in Java

An enum type is a special data type that enables for a variable to be a set of predefined constants.
To create an enum, use the enum keyword (instead of class or interface), and separate the constants with a comma. Note that they should be in uppercase letters.

show more

Share/Embed