Robert

39%
Flag icon
Note that the name of each apple constant is prefixed with APPLE_ and the name of each orange constant is prefixed with ORANGE_. This is because Java doesn’t provide namespaces for int enum groups.
Robert
It's a little bit disingenuous to depict int enums this way. You can namespace them with Packages and Classes, which is part of what Enums is also taking advantage of. (that's not to mean that I'm arguing for int enums).
Effective Java
Rate this book
Clear rating
Open Preview