Constants in Java - The Anti-Pattern - DZone Java
Generally we see a need of a constants file in an application, which stores constants to be shared across multiple locations. While designing an app, I came across a similar situation, where we required various constants to be used at multiple places across the application.
I was sure, that I need a separate file which stores public static constants. But I wasn't very sure to make it an Interface or a Class. (Enum was not suitable for my requirement). So I had two options to chose from:
Read full article from Constants in Java - The Anti-Pattern - DZone Java
No comments:
Post a Comment