Why can attributes in Java be public?
I think it’s possible because every rule has its exception, every best practice can be overridden in certain cases. For example, I often expose public static final data members as public (e.g., constants). I don’t think it’s harmful. I’ll point out that this situation is true in other languages besides Java: C++, C#, etc. Languages … Read more