News

The Java enum is a powerful feature of the language that allows one to elegantly represent finite values and to provide convenient access to characteristics of those finite values.
Ashutosh ‘s post Comparing Java Enums concludes that “using == over .equals () is more advantageous in two ways” (avoiding the NPE and getting the static compile-time check).