0 votes
in JAVA by

Which of the following interfaces represents a function that accepts a long-valued argument and produces a result of the specified type in Java 8?

a) LongPredicate

b) LongSupplier

c) LongFunction

d) LongConsumer

1 Answer

0 votes
by

Answer: c) LongFunction.

Explanation: The LongFunction interface represents a function that accepts a long-valued argument and produces a result of the specified type.

Related questions

0 votes
asked May 2 in JAVA by Robin
0 votes
asked Aug 22, 2022 in Python by Robindeniel
...