A

Admin • 825.56K Points
Coach

Q. What is the result type of `Function<String, Integer>` when applying a lambda like `s -> s.length()`?

  • (A) String
  • (B) Integer
  • (C) Double
  • (D) Boolean

Explanation by: Admin
`Function<String, Integer>` returns an Integer as the result.

You must be Logged in to update hint/solution

Discusssion

Login to discuss.

Be the first to start discuss.