类Test1定义如下: 1. public class Test1{ 2. pu...将以下哪种方法插入行3是不合法的。( )
举一反三
- 智慧职教: 类Test1定义如下: public class Test1{ public float aMethod(float a,float b){ } //此处是第三行位置 } 将以下哪种方法插入第三行位置是不合法的( )
- 类Test1定义如下: 1.publicclassTest1{ 2.publicfloataMethod(floata,floatb){} 3. 4.} 将以下哪种方法插入行3是不合法的。
- 中国大学MOOC: 类Test1定义如下:publicclassTest1{publicfloataMethod(floata,floatb){}}将以下哪种方法插入行3是不合法的。( )
- 类Test1、Test2定义如下: A: public class Test1 B: { public float aMethod(float a,float b) throws C: IOException { } D: } E: public class Test2 extends Test1{ F: G: } 将以下哪种方法插入行6是不合法的。 H: float aMethod(float a,float b){ } I: public int aMethod(int a,int b)throws Exception{ } J: public float aMethod(float p,float q){ } K: 都不对
- 将以下哪种方法插入到第6行是不合法的( ) 。 1.public class Test1 { 2. public float aMethod(float a,float b) throws 3. IOException { } 4. } 5.public class Test2 extends Test1{ 6. 7.}