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
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.