给出下列的不完整的方法,则哪个声明可以被加入①行完成此方法的声明( ) ① ② {success=connect(); ③ if(success==-1){ ④ throw new TimedOutException(); ⑤ } ⑥ }
A.public void method() B.public void method()throws Exception C.public void method()throw TimedOutException D.public throw TimedOutException void method()