Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
Interfaces in Java8
public interface MyInterface {
* All the methods of an interface are public by default
void method1();
void method2();
default void newMethod(){
System.out.println("This is the default implementation of the method");
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment