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

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