Skip to content

Instantly share code, notes, and snippets.

@Yatharth0045
Created March 5, 2019 12:44
Show Gist options
  • Save Yatharth0045/1318a9544b79aecd296cf61b1d0e7d65 to your computer and use it in GitHub Desktop.
Save Yatharth0045/1318a9544b79aecd296cf61b1d0e7d65 to your computer and use it in GitHub Desktop.
Basic Functional Interface Syntax
@FunctionalInterface
interface FuncInterface{
void abstractMethod();
default void defaultMethod(){
//optional default method with some default implementation
}
static void staticMethod(){
//optional static method with some implementation
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment