Refining the Java Interface

I got confused with a string in Oracle Java docs here under the heading Interfaces in Java , which says:

Method bodies exist only for default methods and static methods.

Since we cannot determine the body of the method in the interface, I am confused if this line has a different value. Appreciate if someone can help me in understanding this.

+4
source share
2 answers

In Java 8, interfaces can contain standard implementations for their methods, as well as implemented static methods.

+6
source

- java 8. java 8 .

, , ( ) , , .

, , (, -/ ) - .

+1

All Articles