Skip to content

Instantly share code, notes, and snippets.

@anjanashankar9
Created October 26, 2015 05:55
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save anjanashankar9/2ea4b366a66d871d4f8d to your computer and use it in GitHub Desktop.
Save anjanashankar9/2ea4b366a66d871d4f8d to your computer and use it in GitHub Desktop.
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