• 2022-06-16
    请看下列代码:public interface A {String DEFAULT_GREETING = “Hello World”;public void method1();}现有接口B,是A接口的子接口,下列选择中B接口的声明正确的是:
    A: public interface B extends A { }
    B: public interface B implements A {}
    C: public interface B instanceOf A {}
    D: public interface B inheritsFrom A { }