自定义异常要继承()类。


自定义异常要继承()类。

A.Class类

B.Exception或其子类

C.Error类

D.File类

正确答案:Exception或其子类