接口(interface)是指:
举一反三
- 检查接口状态的命令是: ACT interface|DIAG interface|MOD interface|display interface
- 请看下列代码: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 { }
- interface表示接口
- 定义接口的关键字是interface
- 1、以下接口定义,正确的是()。 A: interface A {void print(){};} B: abstract interface A {void print();} C: abstract interface A extends J1, J2{ //J1、J2是已定义的接口abstract void print(){};} D: interface A {void print();}