A

Admin • 825.56K Points
Coach

Q. Which lambda expression counts the length of a string?

  • (A) s -> s.size()
  • (B) s -> s.length()
  • (C) s -> s.count()
  • (D) s -> s.len()

Explanation by: Admin
`s.length()` returns the length of a string in Java.

You must be Logged in to update hint/solution

Discusssion

Login to discuss.

Be the first to start discuss.