Consider I am having the following enum class,
public enum Sample { READ, WRITE }
and in the following class I am trying to test th
Fetch a good book on Java Basics and read it.
Anyways, Enums in java are classes with fixed number of objects and objects are defined by its attributes.
Again, you can read something about it here