summaryrefslogtreecommitdiffhomepage
path: root/java.html.markdown
diff options
context:
space:
mode:
authorToby Sullivan <tobyjsullivan@gmail.com>2017-10-05 12:19:40 -0700
committerToby Sullivan <tobyjsullivan@gmail.com>2017-10-05 12:19:40 -0700
commit8bccfb8be287e8f85129a45abb046a3f27b1e0dd (patch)
tree94040b5c471f01f69fc31ccae9c980f6c58c7391 /java.html.markdown
parent7a31cbd84e0053224fce22fed01fb0e97c8b4ab5 (diff)
Add default keyword
Diffstat (limited to 'java.html.markdown')
-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 ...");
}
}