What are the popular annotations introduced in Java 8?

Some of the popular annotations introduced in Java 8 are:

  • @FunctionalInterface: This annotation is used to mark an interface as Functional Interface. As mentioned earlier, A FunctionalInterface can be used for lambda expressions.
  • @Repeatable: This annotation is used for marking another annotation. It indicates that the marked annotation can be applied multiple times on a type.
Read the full book at www.amazon.com
Posted in Java 8, Java 8 Interview Questions

Leave a Reply

Your email address will not be published. Required fields are marked *

*