Q. What kind of interface is necessary for a lambda to be used?

  • (A) Interface with static methods only
  • (B) Functional interface with one abstract method
  • (C) Any abstract class
  • (D) Any interface
πŸ’¬ Discuss
βœ… Correct Answer: (B) Functional interface with one abstract method
Explanation: Only functional interfaces with a single abstract method can be implemented via lambdas.
Explanation by: Mr. Dubey
Only functional interfaces with a single abstract method can be implemented via lambdas.

πŸ’¬ Discussion


πŸ“Š Question Analytics

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