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

  • (A) Hello
  • (B) Hello
  • (C) hello
  • (D) HELLO
πŸ’¬ Discuss
βœ… Correct Answer: (A) Hello
Explanation: String::trim removes leading and trailing spaces.
Explanation by: Mr. Dubey
String::trim removes leading and trailing spaces.

πŸ’¬ Discussion


πŸ“Š Question Analytics

πŸ‘οΈ
55
Total Visits
πŸ“½οΈ
1 y ago
Published
πŸŽ–οΈ
Mr. Dubey
Publisher
πŸ“ˆ
89%
Success Rate