A functional interface is an interface that declares exactly one abstract method, which makes it a valid target type for a lambda expression or method reference.
Runnable is a functional interface with a single abstract run() method, so Runnable r = () -> System.out.println("Running"); is valid because the lambda matches run()'s no-argument, void signature.
@FunctionalInterface
interface Calculator {
int operate(int a, int b);
}
Calculator add = (a, b) -> a + b;
System.out.println(add.operate(3, 4)); // 7A concise interview answer is
A functional interface has exactly one abstract method, which is what allows a lambda expression to implement it. It can still have default or static methods without breaking that rule. I mark mine with @FunctionalInterface so the compiler catches it if someone accidentally adds a second abstract method later.
Last updated: 11 November 2026
Previous question: What is the difference between a lambda expression and an anonymous inner class?
Next question: What are some of the predefined functional interfaces in Java 8?