10 multiple-choice questions. Pick one answer for each, then submit to see your score and an explanation for every question.
Question 1 of 10
What is a functional interface in Java 8?
Question 2 of 10
What is the primary purpose of functional interfaces?
Question 3 of 10
Which annotation can mark an interface explicitly as a functional interface?
Question 4 of 10
What does the compiler do when an interface annotated with @FunctionalInterface has two abstract methods?
Question 5 of 10
Is the @FunctionalInterface annotation mandatory for an interface to be a functional interface?
Question 6 of 10
Which of these interfaces, which existed before Java 8, is a functional interface?
Question 7 of 10
What is the single abstract method of java.util.concurrent.Callable<V>?
Question 8 of 10
Which abstract method does java.util.function.Predicate<T> declare?
Question 9 of 10
The tutorial groups functional interfaces into three types. Which of these is NOT one of them?
Question 10 of 10
A user-defined interface has one abstract method and no @FunctionalInterface annotation. Can a lambda expression implement it?