0 votes
in JAVA by

Which interface is used to represent a binary operator (a function that takes two arguments and returns a result of the same type) in Java?

a) BiFunction

b) BinaryOperator

c) UnaryOperator

d) Consumer

1 Answer

0 votes
by

Answer: b) BinaryOperator

Explanation: The BinaryOperator interface is used to represent a binary operator (a function that takes two arguments and returns a result of the same type) in Java.

...