Question

Which of the following is true for an anonymous function in Java?

A It must have a name and return type
B It is implemented using Lambda expressions and has no name
C It can only be used with abstract classes
D It cannot take any parameters
E It must have at least one parameter
Practice Next

Hey! Ask a query