πŸ“Š JAVA
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

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