πŸ“Š JAVA
Q. What is the result type of `Function<String, Integer>` when applying a lambda like `s -> s.length()`?
  • (A) String
  • (B) Integer
  • (C) Double
  • (D) Boolean
πŸ’¬ Discuss
βœ… Correct Answer: (B) Integer

Explanation: `Function<String, Integer>` returns an Integer as the result.

Explanation by: Mr. Dubey
`Function<String, Integer>` returns an Integer as the result.

πŸ’¬ Discussion


πŸ“Š Question Analytics

πŸ‘οΈ
27
Total Visits
πŸ“½οΈ
6 mo ago
Published
πŸŽ–οΈ
Mr. Dubey
Publisher
πŸ“ˆ
83%
Success Rate