πŸ“Š JAVA
Q. Can lambda expressions contain loops?
  • (A) No
  • (B) Yes, in the body if braces are used
  • (C) Only while loops
  • (D) Only for-each loops
πŸ’¬ Discuss
βœ… Correct Answer: (B) Yes, in the body if braces are used

Explanation: Lambdas can include loops if the body is defined within braces `{}`.

Explanation by: Mr. Dubey
Lambdas can include loops if the body is defined within braces `{}`.

πŸ’¬ Discussion


πŸ“Š Question Analytics

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