Search Interview Questions | More than 3000 questions in repository. There are more than 900 unanswered questions. Click here and help us by providing the answer. Have a video suggestion. Click Correct / Improve and please let us know. |
|
| ||||
Core Java - Interview Questions and Answers for 'Functional interface' - 2 question(s) found - Order By Newest | ||||
Not frequently asked as it was introduced with Java 8. | ||||
| ||||
Ans. This is an informative annotation that specify that the interface is a functional interface. A Function Interface has only one abstract method and many default methods. Compiler generates an error if the interface specified with the annotation doesn't abide by the specifications for functional interface. | ||||
Help us improve. Please let us know the company, where you were asked this question : | ||||
Like Discuss Correct / Improve  java   java8   java 8   functional interface   default methods | ||||
Related Questions | ||||
How do you define a functional interface? | ||||
| ||||
Ans. Create interface with the only one non-overriding abstract method and annotate it with @FunctionalInterface | ||||
Help us improve. Please let us know the company, where you were asked this question : | ||||
Like Discuss Correct / Improve  functional interface  java 8 Asked in 1 Companies | ||||
Related Questions | ||||
What is the @FunctionalInterface annotation ? | ||||