Q. What is the type of `x -> x.toUpperCase()` if x is a String?
β
Correct Answer: (B)
Function<String, String>
Explanation: It takes a String input and returns a String output, which is a Function.