Q. What is the output type of this lambda: `(String s) -> s.length()`?

  • (A) int
  • (B) String
  • (C) boolean
  • (D) double
πŸ’¬ Discuss
βœ… Correct Answer: (A) int
Explanation: The lambda returns the length of the string, which is an integer.
Explanation by: Mr. Dubey
The lambda returns the length of the string, which is an integer.

πŸ’¬ Discussion


πŸ“Š Question Analytics

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