A

Admin • 831.35K Points
Coach

Q. Which statement is true about lambdas and anonymous classes?

  • (A) Both can have multiple methods
  • (B) Lambdas have less boilerplate code than anonymous classes
  • (C) Lambdas can extend classes
  • (D) Anonymous classes are faster than lambdas

Explanation by: Admin
Lambdas reduce boilerplate compared to anonymous classes.

You must be Logged in to update hint/solution

Discusssion

Login to discuss.

Be the first to start discuss.