summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
-rw-r--r--java.html.markdown2
1 files changed, 1 insertions, 1 deletions
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 ...");
}
}