A

Admin • 832.27K Points
Coach

Q. What does `Function<String, Integer> lengthFunc = String::length;` do?

  • (A) Creates a string
  • (B) Maps string to its length
  • (C) Converts integer to string
  • (D) Checks if string is empty

Explanation by: Admin

It maps a string input to its length.

You must be Logged in to update hint/solution

Discusssion

Login to discuss.

Be the first to start discuss.