A

Admin • 828.03K Points
Coach

Q. What is returned by `Function<String, String> f = String::trim;` when applied to " Hello "?

  • (A) Hello
  • (B) Hello
  • (C) hello
  • (D) HELLO

Explanation by: Admin
String::trim removes leading and trailing spaces.

You must be Logged in to update hint/solution

Discusssion

Login to discuss.

Be the first to start discuss.