Brian

27%
Flag icon
you should export the constants with a noninstantiable utility class (Item 4).
Brian
I guess. I’ve used constants interfaces in the past (all devs we’re working together though, so I guess likelihood of confusion was minimized by proximity) without incident.
Robert
· Flag
Robert
I think constant interfaces seems fine as long as nobody is misusing them; and it usually turns out actually fine because it's rarely misused. But I guess the case being made here is reasonable: you m…
Effective Java
Rate this book
Clear rating
Open Preview