Computer scienceProgramming languagesJavaCode organizationObject-oriented programmingClass hierarchiesInterfaces and abstract classes

Fundamentals of interfaces in Java

Which methods must be overridden

Report a typo

Here is an interface and a class implementing this interface:

interface A {
    
    static void staticMethod() { }
    
    void method();
    
    default void defaultMethod() { }

    abstract void abstractMethod();
}

class B implements A { }

Which methods must be implemented in the class B?

Select one or more options from the list
___

Create a free account to access the full topic