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

  1. Hello
  2. Hello
  3. hello
  4. HELLO
Correct answer Hello

Explanation

String::trim removes leading and trailing spaces.

Update: Admin added a tag on this question

Topics

By Admin · · 38 views