Q. Which annotation is used to indicate a functional interface?

  • (A) @Override
  • (B) @FunctionalInterface
  • (C) @Deprecated
  • (D) @Interface
πŸ’¬ Discuss
βœ… Correct Answer: (B) @FunctionalInterface
Explanation: `@FunctionalInterface` is used to enforce that an interface has exactly one abstract method.
Explanation by: Mr. Dubey
`@FunctionalInterface` is used to enforce that an interface has exactly one abstract method.

πŸ’¬ Discussion


πŸ“Š Question Analytics

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