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
πŸ’¬ Discuss
βœ… Correct Answer: (B) To reduce code verbosity in implementing functional interfaces
Explanation: Lambdas provide a concise way to implement single-method interfaces.
Explanation by: Mr. Dubey
Lambdas provide a concise way to implement single-method interfaces.

πŸ’¬ Discussion


πŸ“Š Question Analytics

πŸ‘οΈ
61
Total Visits
πŸ“½οΈ
1 y ago
Published
πŸŽ–οΈ
Mr. Dubey
Publisher
πŸ“ˆ
82%
Success Rate