A、class student extends Person
B、class studnet Person
C、class student extend Person
D、student extends Person
A、class student extends Person
B、class studnet Person
C、class student extend Person
D、student extends Person
A、System.ArgumentException
B、System.IO.IOException
C、System.SystemException
D、System.ApplicationException
A、必须继承c++标准库中给出的异常类
B、继承了c++标准库中给出的异常类,则可以在自定义异常类的构造函数体中调用基类的构造函数
C、自定义异常类的构造函数可以有参数
D、从C++自带异常类继承来的自定义异常类通过调用其基类构造函数,可以将异常状况的描述信息保留下来留待异常处理程序使用
A、自定义的异常类需继承Exception类,在构造方法中使用super()语句调用Exception的构造方法
B、自定义异常类需要用throw关键字在方法中声明抛出异常的实例对象
C、如果想要调用者捕获throw抛出的异常,需要在抛出异常的方法中使用throws关键字指明异常
D、抛出的异常对象可以使用try…catch语句对其进行处理
为了保护您的账号安全,请在“简答题”公众号进行验证,点击“官网服务”-“账号验证”后输入验证码“”完成验证,验证成功后方可继续查看答案!