下列代码中给出正确的在方法体内抛出异常的是()。

下列代码中给出正确的在方法体内抛出异常的是()。

A.newthrowException("");

B.thrownewException("");

C.throwsIOException();

D.throwsIOException;

正确答案:B

猜你喜欢