试题详情
单项选择题 public interface A {  String DEFAULT_GREETING = “Hello World”;  public void method1();  }  A programmer wants to create an interface called B that has A as its parent. Which interface declaration is correct?() 

A、 public interface B extends A {}

B、 public interface B implements A {}

C、 public interface B instanceOf A {}

D、 public interface B inheritsFrom A {}

  • A
  • 关注下方微信公众号,在线模考后查看

热门试题