Question: Since enumerations have been added to Java, should I avoid the use of final variables? In other words, have enumerations rendered final variables obsolete? Can
Since enumerations have been added to Java, should I avoid the use of final variables? In other words, have enumerations rendered final variables obsolete?
Can an enumeration have a constructor? What is the ordinal value of an enumeration constant?
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
