classMyExceptionextends(1){}publicclassDemo{publicstaticvoidmain(String[]args){try{show();}catch((2)e){e.printStackTrace();}}publicstaticvoidshow()(3)MyException{thrownewMyException();}以上程序,创建了一个自定义异常(编译异常),请补全空白处代码()
A. (1)Exception(2)MyException(3)throws
B. (1)MyException(2)Exception(3)throws
C. (1)Exception(2)Exception(3)throws
D. (1)Exception(2)MyException(3)Exception