“Implementing a constant interface causes this implementation detail to leak into the class’s exported API. It is of no consequence to the users of a class that the class implements a constant interface. In fact, it may even confuse them. Worse, it represents a commitment: if in a future release the class is modified so that it no longer needs to use the constants, it still must implement the interface to ensure binary compatibility. If a nonfinal class implements a constant interface, all of its subclasses will have their namespaces polluted by the constants in the interface.”
―
Effective Java : Programming Language Guide
Share this quote:
Friends Who Liked This Quote
To see what your friends thought of this quote, please sign up!
0 likes
All Members Who Liked This Quote
None yet!
This Quote Is From
Effective Java : Programming Language Guide
by
Joshua Bloch8,088 ratings, average rating, 425 reviews
Browse By Tag
- love (101656)
- life (80178)
- inspirational (76802)
- humor (44857)
- philosophy (31470)
- inspirational-quotes (28582)
- god (27030)
- wisdom (24794)
- truth (24669)
- romance (24653)
- poetry (23661)
- life-lessons (22729)
- quotes (21302)
- death (20761)
- happiness (18970)
- hope (18773)
- faith (18578)
- inspiration (17979)
- spirituality (15975)
- motivational (15942)
- relationships (15813)
- religion (15515)
- life-quotes (15171)
- writing (15064)
- love-quotes (14823)
- success (14168)
- motivation (14012)
- time (12929)
- science (12218)
- motivational-quotes (12099)
