“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,103 ratings, average rating, 425 reviews
Browse By Tag
- love (101879)
- life (80460)
- inspirational (77098)
- humor (44978)
- philosophy (31615)
- inspirational-quotes (28652)
- god (27064)
- wisdom (24902)
- romance (24791)
- truth (24771)
- poetry (23786)
- life-lessons (22831)
- quotes (21419)
- death (20848)
- happiness (18996)
- hope (18833)
- faith (18616)
- inspiration (18019)
- spirituality (16027)
- motivational (16010)
- relationships (15937)
- religion (15546)
- life-quotes (15255)
- writing (15103)
- love-quotes (14865)
- success (14207)
- motivation (14070)
- time (12989)
- science (12276)
- motivational-quotes (12132)
