0 votes
in JAVA by
How is a functional interface made?

1 Answer

0 votes
by

Java can recognise a functional interface, but you can define one by using an annotation.

@FunctionalInterface

There can only be one abstract method once the functional interface has been specified. You can create numerous dynamic methods and default methods because there is only one abstract method.

Related questions

0 votes
asked May 31, 2022 in JAVA by Robin
0 votes
asked May 31, 2022 in JAVA by Robin
...