πŸ“Š JAVA
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

πŸ‘οΈ
41
Total Visits
πŸ“½οΈ
8 mo ago
Published
πŸŽ–οΈ
Mr. Dubey
Publisher
πŸ“ˆ
98%
Success Rate