单项选择题

有下列程序
在public void test()后加上哪一句可以使编译不出错。()

A.throw MyException
B.throws MyException
C.throw new MyException()
D.throws new MyException()