Enums and Annotations
Two special-purpose families of reference types: Enums and Annotations.
Item 34: Use enums instead of int constants
int constants
public static final int APPLE_FUJI = 0;
Disadvantages:
No type safety (other values can be used, even if not present in...
techtenets.hashnode.dev4 min read