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. wondering what are the best practices? im talking about global constants. Is an enum the best choice for storing constants in java?
thanks