题目内容
(请给出正确答案)
[主观题]
编写程序,能够产生、捕获和处理NullPointerException异常和ClassCastException 异常。
提问人:网友xxfylq
发布时间:2022-01-07
A.IOException
B.ArithmeticException
C.InterruptedException
D.NullPointerException
A.IOException
B.NumberFormatException
C.NullPointerException
D.ArithmeticException
A.NullPointerException
B.ClassCastException
C.FileNotFoundException
D.IndexOutOfBoundsException
A.IOException
B.ClassNotFoundException
C.NullPointerException
D.InterruptedException
下列说法不正确的是()。
A.Java语言中,异常处理分为编译异常、运行异常、捕获异常三种
B.捕获异常要求在程序的方法中预先声明
C.运行异常在编程时必须定义
D.以上说法都不对
下列说法正确的是()。
A.Java语言中,异常处理分为编译异常、运行异常、捕获异常三种
B.捕获异常要求在程序的方法中预先声明
C.运行异常在编程时必须定义
D.以上说法都不对
为了保护您的账号安全,请在“简答题”公众号进行验证,点击“官网服务”-“账号验证”后输入验证码“”完成验证,验证成功后方可继续查看答案!