0 votes
in JAVA by

Which interface is used to represent a unary operator (a function that takes one argument and returns a result of the same type) in Java?

a) BiFunction

b) BinaryOperator

c) UnaryOperator

d) Consumer

1 Answer

0 votes
by
Answer: c) UnaryOperator

Explanation: The UnaryOperator interface is used to represent a unary operator (a function that takes one argument and returns a result of the same type) in Java.
...