0 votes
in JAVA by
Which of the following interfaces represents a consumer of long-valued arguments in Java 8?

a) LongSupplier

b) LongPredicate

c) LongFunction

d) LongConsumer

1 Answer

0 votes
by

Answer: d) LongConsumer.

Explanation: The LongConsumer interface represents a consumer of long-valued arguments, and has a single abstract method accept() that takes a long value as input and returns no result.

Related questions

0 votes
asked May 2 in JAVA by Robin
0 votes
asked May 22, 2022 in JAVA by AdilsonLima
...