I am confused with a line in Oracle Java docs here under the heading Interfaces In Java, which says:
Method bodies exist only for default methods and static methods.
As we cannot define method body in interface, I am confused if this line has some other meaning. Appreciate if somebody can help me in understanding this.
In Java 8, interfaces may contain default implementations for their methods, as well as implemented static methods.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With