Q. What is the result type of `Function<String, Integer>` when applying a lambda like `s -> s.length()`?
β
Correct Answer: (B)
Integer
Explanation: `Function<String, Integer>` returns an Integer as the result.