下列代码中标注的(A,B,C,D)代码中,哪一个是错误的? abstract class Test { protected void a() {} //A public abstract static void b(); //B static int c(){ return 0 ;} //C abstract float d(); //D }
A: A
B: B
C: C
D: D
A: A
B: B
C: C
D: D
举一反三
- 下列程序中注释的那个代码是错误的? abstract class Takecare{ protected void speakHello() {} public abstract static void cry(); static int f(){return 0;} abstract float g(); } A: protected void speakHello() {} B: public abstract static void cry(); C: static int f(){return 0;} D: abstract float g();
- 下列程序中注释的哪个代码(A、B、C、D)是错误的?abstract class TakeCare{ abstract void speak(); //A public abstract static void cry(); //B static int f() {return 5;} //C abstract float g(); //D } A: A B: B C: c D: D
- 下列接口中标注的(A,B,C,D)中,哪两个是错误的?interface Takecare { protected void speakHello(); public abstract static void cry(); int f(); abstract float g(); } A: protected void speakHello(); B: public abstract static void cry(); C: int f(); D: abstract float g();
- 下列接口中标注的(A,B,C,D)中,哪两个是错误的? interface Takecare { protected void speakHello(); //A public abstract static void cry(); //B int f(); //C abstract float g(); //D }
- 下列接口中标注的(A,B,C,D)中,哪个是错误的? interface Takecare { public static final int ID=1; //A public abstract static void test(); //B int f(); //C abstract float g(); //D } A: A B: B C: C D: D