Functional Interfaces in Java 8 Explained
Test your knowledge

Functional Interfaces in Java 8 Explained

← Back to the tutorial

10 multiple-choice questions. Pick one answer for each, then submit to see your score and an explanation for every question.

  1. Question 1 of 10
    What is a functional interface in Java 8?
  2. Question 2 of 10
    What is the primary purpose of functional interfaces?
  3. Question 3 of 10
    Which annotation can mark an interface explicitly as a functional interface?
  4. Question 4 of 10
    What does the compiler do when an interface annotated with @FunctionalInterface has two abstract methods?
  5. Question 5 of 10
    Is the @FunctionalInterface annotation mandatory for an interface to be a functional interface?
  6. Question 6 of 10
    Which of these interfaces, which existed before Java 8, is a functional interface?
  7. Question 7 of 10
    What is the single abstract method of java.util.concurrent.Callable<V>?
  8. Question 8 of 10
    Which abstract method does java.util.function.Predicate<T> declare?
  9. Question 9 of 10
    The tutorial groups functional interfaces into three types. Which of these is NOT one of them?
  10. Question 10 of 10
    A user-defined interface has one abstract method and no @FunctionalInterface annotation. Can a lambda expression implement it?
0 of 10 answered
Quiz: Functional Interfaces in Java 8 Explained - JavaBrahman