Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
Interfaces in Java8
public class InterfaceImpl implements InterfaceA,InterfaceB{
@Override public void method() {
System.out.println("Default method in implementation class");
}
public static void main(String[] args){
InterfaceA obj = new InterfaceImpl();
obj.method();
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment