An enum type, also called enumeration type, is a type whose fields consist of a fixed set of constants. The very basic purpose of enums is to enforce compile time type safety. In this post, I will list down all necessary features of enums you should know. Sections in this post: What is enum in […]
The post Guide for understanding enum in java appeared first on How To Do In Java.