网友您好, 请在下方输入框内输入要搜索的题目:
题目内容
(请给出正确答案)
Test2定义如下: 1.publicclassTest1 2.{publicfloataMethod(floata,floatb)throws 3.IOException{} 4.} 5.publicclassTest2extendsTest1{ 6. 7.} 将以下哪种方法插入行6是不合法的。()
A.floataMethod(floata,floatb){}
B.publicintaMethod(inta,intb)throwsException{}
C.publicfloataMethod(floatp,floatq){}
D.publicintaMethod(inta,intb)throwsIOException{}
参考答案
更多 “ Test2定义如下: 1.publicclassTest1 2.{publicfloataMethod(floata,floatb)throws 3.IOException{} 4.} 5.publicclassTest2extendsTest1{ 6. 7.} 将以下哪种方法插入行6是不合法的。() A.floataMethod(floata,floatb){}B.publicintaMethod(inta,intb)throwsException{}C.publicfloataMethod(floatp,floatq){}D.publicintaMethod(inta,intb)throwsIOException{} ” 相关考题
考题
14类Test1定义如下: 1.publicclassTest1{ 2.publicfloataMethod(floata,floatb){} 3. 4.} 将以下哪种方法插入行3是不合法的。()
A.public floata Method(floata,floatb,floatc){}B.public floata Method(floatc,floatd){}C.public inta Method(inta,intb){}D.private floata Method(inta,intb,intc){}
考题
类Test定义如下,将下列______方法插入③行处是不合法的。 ( )①public class Test{②public float Method(float a,float b){}③④}A.public float Method(float a,float b,float c){}B.public float Method(float c,float d){}C.public int Method(int a,int b){}D.private float Method(int a,int b,int c){}
考题
类Test定义如下,将下列哪个方法插入③行处是不合法的? ( ) ①public class Test { ②public float Method(float a,float b){} ③ ④}A.public float Method(float a,float b,float c){}B.public float Method(float c,float d){}C.public int Method(int a,int b){}D.private float Method(int a,int b,int c){}
考题
类Test定义如下,将下列( )方法插入③行处是不合法的。 ①publicClass Test{ ②public float Method(floatA,float b){} ③ ④}A.public float Method(floatA,float b,floatC){}B.public float Method(noatC,float d) {}C.public int Method(intA,int b){}D.private float Method(intA,int b,intC){}
考题
类testl定义如下: public class test1 { public float amethod(float a,float b){ } }A.public foat amethod(float a,float b,foat c){ }B.public float amethod(float c,float d){ }C.public int amethod(int a,int b){ }D.private float amethod(int a,int b,int c){ }
考题
类Test定义如下,将下列()方法插入③行处是不合法的。①publicclassTest{②publicfloatMethod(floata,floatb){}③④}A.publicfloatMethod(floata,floatb,floatc){}B.pubicfloatMethod(floatc,floatd){}C.publicintMethod(inta,intb){}D.pivatefloatMethod(inta,intb,intc){}
考题
类Test定义如下,将下列哪个方法插入③行处是不合法的( )?① public class Test{② public float Method(float a,float B) { }③ ______④ }A.public float Method(float a,float b,float C) { }B.public float Method(float c,float d){ }C.public int Method(int a,int B) { }private float Method(int a,int b,int C) { }D.private float Method(int a,int b,int C) { }
考题
类Test定义如下,将下列哪个方法插入③行处是不合法的? ① public class Test { ② public float Method(float a,float b) { } ③ ④ }A.public float Method(float a,float b,float c) { }B.public float Method(float c,float d){ }C.public int Method(int a,int b){ }D.private float Method(int a,int b,int c){ }
考题
将以下哪种方法插入到第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.}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{ }
热门标签
最新试卷