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

a) DoubleSupplier

b) DoublePredicate

c) DoubleFunction

d) DoubleConsumer

1 Answer

0 votes
by

Answer: d) DoubleConsumer.

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

...