单项选择题
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{}