From 52b8b0f457d83cc8526cf94520597b18430b77ba Mon Sep 17 00:00:00 2001 From: shivam716 <38368417+shivam716@users.noreply.github.com> Date: Sat, 6 Oct 2018 02:01:08 +0530 Subject: [PATCH] added a comment updated some information as per Java 8. --- src/31_InterfaceExample.java | 1 + 1 file changed, 1 insertion(+) diff --git a/src/31_InterfaceExample.java b/src/31_InterfaceExample.java index f470d7f..82bfa0e 100644 --- a/src/31_InterfaceExample.java +++ b/src/31_InterfaceExample.java @@ -43,6 +43,7 @@ public void eat() { * * You cannot create object of interface. They are just a blueprint of a class. * * Use implements keyword * * They can only contain abstract methods. + * * Java 8 onwards we can have methods with body within interface (i.e. we can have static as well as default methods). * * 1. For Methods * * They are public and abstract