A

Admin • 828.03K Points
Coach

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

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

You must be Logged in to update hint/solution

Discusssion

Login to discuss.

Be the first to start discuss.