From 8bccfb8be287e8f85129a45abb046a3f27b1e0dd Mon Sep 17 00:00:00 2001 From: Toby Sullivan Date: Thu, 5 Oct 2017 12:19:40 -0700 Subject: Add default keyword --- java.html.markdown | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/java.html.markdown b/java.html.markdown index fa1ff3d1..a8c2523c 100644 --- a/java.html.markdown +++ b/java.html.markdown @@ -660,7 +660,7 @@ public interface Edible { public interface Digestible { public void digest(); // Since Java 8, interfaces can have default method. - public void defaultMethod() { + public default void defaultMethod() { System.out.println("Hi from default method ..."); } } -- cgit v1.2.3