To avoid magic numbers, I always use constants in my code. Back in the old days we used to define constant sets in a methodless interface which has now become an antipattern.
I was wondering what are the best practices? I'm talking about global constants. Is an enum the best choice for storing constants in Java?