summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorPratik Karki <predatoramigo@gmail.com>2017-10-07 09:09:53 +0545
committerGitHub <noreply@github.com>2017-10-07 09:09:53 +0545
commit64b1378b118dd3a0e1fb1730c3263b782c1d088f (patch)
tree94040b5c471f01f69fc31ccae9c980f6c58c7391
parent7a31cbd84e0053224fce22fed01fb0e97c8b4ab5 (diff)
parent8bccfb8be287e8f85129a45abb046a3f27b1e0dd (diff)
Merge pull request #2892 from tobyjsullivan/fix-default-method
[java/en] Add default keyword
-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 ...");
}
}