0 votes
in JAVA by

Which interface is used to represent a function that does not return a result in Java?

a) Function

b) Predicate

c) Consumer

d) Supplier

1 Answer

0 votes
by

Answer: c) Consumer

Explanation: The Consumer interface is used to represent a function that does not return a result in Java.

Related questions

0 votes
asked May 5 in JAVA by sharadyadav1986
0 votes
asked May 9 in JAVA by rahuljain1
...