diff options
author | Pratik Karki <predatoramigo@gmail.com> | 2017-10-07 09:09:53 +0545 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-10-07 09:09:53 +0545 |
commit | 64b1378b118dd3a0e1fb1730c3263b782c1d088f (patch) | |
tree | 94040b5c471f01f69fc31ccae9c980f6c58c7391 | |
parent | 7a31cbd84e0053224fce22fed01fb0e97c8b4ab5 (diff) | |
parent | 8bccfb8be287e8f85129a45abb046a3f27b1e0dd (diff) |
Merge pull request #2892 from tobyjsullivan/fix-default-method
[java/en] Add default keyword
-rw-r--r-- | java.html.markdown | 2 |
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 ..."); } } |