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.

...