in JAVA by
Q:
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 Apr 15, 2021 in JAVA by SakshiSharma
0 votes
asked Feb 8, 2020 in JAVA by rahuljain1
+1 vote
asked Jan 27, 2020 in JAVA by rahuljain1
...