Static Interface Method

A utility method that belongs to an interface rather than its implementations.

What is Static Interface Method in Java?

Static Interface Method — A utility method that belongs to an interface rather than its implementations.

interface Printable {
    default String format() {
        return "Ready";
    }
}

class Ticket implements Printable {
}

Level: Journeyman · More Java terms at this level

Updated