Created
March 5, 2019 12:44
-
-
Save Yatharth0045/1318a9544b79aecd296cf61b1d0e7d65 to your computer and use it in GitHub Desktop.
Basic Functional Interface Syntax
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@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