Robert

41%
Flag icon
A minor performance disadvantage of enums is that there is a space and time cost to load and initialize enum types, but it is unlikely to be noticeable in practice.
Robert
Android deemed it noticable. Personally, I think these days it's probably safe to assume Enums are usually a better choice (benefit > cost) for most application code.
Effective Java
Rate this book
Clear rating
Open Preview