Can a functional interface extend another interface?

Yes, a functional interface can extend another interface, provided that the resulting interface still contains only one abstract method. If extending another interface introduces more than one abstract method, the interface will no longer qualify as a functional interface.

Key Points

Example

A functional interface can inherit an abstract method from its parent interface and still remain functional.

interface Printable {

    void print();
}

@FunctionalInterface
interface Document extends Printable {

}

public class Demo {

    public static void main(String[] args) {
        Document document = () ->
                System.out.println("Printing Document");

        document.print();
    }
}

Output

Printing Document

Valid Functional Interface with Default Methods

interface Vehicle {

    void start();

    default void stop() {
        System.out.println("Vehicle Stopped");
    }
}

@FunctionalInterface
interface Car extends Vehicle {

}

This is valid because there is still only one abstract method: start().

Invalid Example

interface Printable {

    void print();
}

interface Scannable {

    void scan();
}

@FunctionalInterface
interface MultiFunction extends Printable, Scannable {

}

Compilation Error

Unexpected @FunctionalInterface annotation

This interface inherits two abstract methods, so it is no longer a functional interface.

Special Case

If multiple parent interfaces declare the same abstract method signature, the child interface can still be functional.

Example

interface A {

    void display();
}

interface B {

    void display();
}

@FunctionalInterface
interface C extends A, B {

}

Since there is only one effective abstract method, C remains a valid functional interface.

Benefits

Interview Tip

A concise interview answer is

Yes, a functional interface can extend another interface as long as the total number of abstract methods remains one. Default and static methods do not affect this rule, but if multiple inherited abstract methods exist, the interface will no longer be considered a functional interface.

Last updated: 11 November 2026

Previous question: What is a functional interface in Java?

Next question: What are the advantages of using a functional interface?

More Core Java - Level II interview questions

All Core Java - Level II questions