What should default interfaces be for?

Brian Goetz brian.goetz at oracle.com
Thu Mar 15 17:19:33 PDT 2012

Of the suggested tweaks, this is the one that seems most realistic to happen eventually (though not necessarily immediately.)  As people put more code into interfaces, it will be natural to want to factor implementations using private helper methods.  Protected methods are similarly useful.  We don't see any reason that the choices made to date will preclude these, though we are focusing our efforts currently on higher-value items.  

On Mar 13, 2012, at 11:29 PM, Chance wrote:

> Of course people are going to use default methods as a new way of
> constructing type hierarchies. Count me among those more excited by the
> inclusion of default methods in JDK 8 than closures. I can't think of much
> that's missing - the full set of access levels would be a nice to have.
> Chance

More information about the lambda-dev mailing list