Get Even More Visitors To Your Blog, Upgrade To A Business Listing >>

Default methods in Java 8, and what it changes in API design

Java 8 introduced default methods in Interfaces. This post describes what they are, and how they can change the design of APIs. A nominal design Earlier, in Java, interfaces could only have contracts – method signatures with no implementation. In order to add some implementation, a class was required, whether abstract or not. Hence, traditional API design then followed this hierarchy: ...



This post first appeared on Java Code Geeks, please read the originial post: here

Share the post

Default methods in Java 8, and what it changes in API design

×

Subscribe to Java Code Geeks

Get updates delivered right to your inbox!

Thank you for your subscription

×