Nikolche Mihajlovski

Nikolche Mihajlovski

A software engineer with 27+ years of software development experience. Founder of
ūüďć Lausanne, Switzerland

Java 8 default methods

Starting from Java 8, a method which is defined in an interface can have a default implementation: For example: interface Descriptive {     default String desc() {         return "fantastic";     } }   class Item implements Descriptive {     // the method "desc" is not implemented here }   Item item = new Item(); item.desc(); // "fantastic"   class Book implements Descriptive {     @Override     public
1 min read

Subscribe to Java 8 Resources

Don’t miss out on the latest issues. Sign up now to get access to the library of members-only issues.