A

Admin • 828.03K Points
Coach

Q. What is the output type of this lambda: `(String s) -> s.length()`?

  • (A) int
  • (B) String
  • (C) boolean
  • (D) double

Explanation by: Admin
The lambda returns the length of the string, which is an integer.

You must be Logged in to update hint/solution

Discusssion

Login to discuss.

Be the first to start discuss.