Which of the following is equivalent to this code?
UnaryOperator<Integer> u = x -> x * x;
E.
A UnaryOperator is a special type of function where the parameter and return type are the same.
Therefore, option E is correct.
Notice that other options don't even compile because they have the wrong number of generic types for the functional interface provided.