Oracle
1Z0-809 · Question #46
Which statement is true about the single abstract method of the java.util.function.Function interface?
The correct answer is D. It accepts an argument and produces a result of any data type.. See the full explanation below for the reasoning.
Question
Which statement is true about the single abstract method of the java.util.function.Function interface?
Options
- AIt accepts one argument and returns void.
- BIt accepts one argument and returns boolean.
- CIt accepts one argument and always produces a result of the same type as the argument.
- DIt accepts an argument and produces a result of any data type.
How the community answered
(56 responses)- A5% (3)
- B13% (7)
- C4% (2)
- D79% (44)
Community Discussion
No community discussion yet for this question.