Consider I am having the following enum class,
public enum Sample { READ, WRITE }
and in the following class I am trying to test th
Enums doesn't support public constructors and hence, cannot be instantiated. Enums are for when you have a fixed set of related constants. Exactly one instance will be created for each enum constant.