Java · Easy
What is the @FunctionalInterface annotation? What happens if you add a second abstract method?
JavaCore JavaJava 8+Lambda
Answer preview
@FunctionalInterface is a marker annotation indicating that an interface is intended to be a functional interface — exactly one abstract method (SAM: Single Abstract Method).…