Skip to content

Instantly share code, notes, and snippets.

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();
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment