M

Mr. Dubey • 100.69K Points
Coach

Q. What is the main purpose of lambda expressions in Java?

  • (A) To create classes dynamically
  • (B) To reduce code verbosity in implementing functional interfaces
  • (C) To replace constructors
  • (D) To handle exceptions
  • Correct Answer - Option(B)
  • Views: 6
  • Filed under category JAVA

Explanation by: Mr. Dubey
Lambdas provide a concise way to implement single-method interfaces.

You must be Logged in to update hint/solution

Discusssion

Login to discuss.


Question analytics