题库 软件开发 题目列表 类Test1、Test2定义如下: 1.public  class  Te...
单选题

类Test1、Test2定义如下:

1.public  class  Test1  

2.{ public  float  aMethod(float a,float b)throws

3.  IOException {      }

4.}  

5.public  class  Test2  extends  Test1{

6.  

7.}

 将以下哪种方法插入行6是不合法的()

A.

float aMethod(float a,float b){ }

B.

public int aMethod(int a,int b)throws Exception{ }

C.

public float aMethod(float p,float q){ }

D.

public int aMethod(int a,int b)throws IOException{ }

题目信息
校招真题
-
正确率
0
评论
14
点击