Brian

27%
Flag icon
In Java 8, the default method construct was added [JLS 9.4], with the intent of allowing the addition of methods to existing interfaces. But adding new methods to existing interfaces is fraught with risk.
Brian
This is not good motivation to introduce default implementations though, right? Perhaps better off adding new interfaces and dealing with that pain? I’ll bet some default implantation just throw not-implemented exceptions, right?
Effective Java
Rate this book
Clear rating
Open Preview