在异常类中,ArithmeticException继承RuntimeException类,RuntimeException类继承

分类: 初级Java开发工程师 发布时间: 2023-11-03 11:08 浏览量: 0

在异常类中,ArithmeticException继承RuntimeException类,RuntimeException类继承Exception类。如果要进行异常捕捉,正确的catch捕捉顺序是()

A.ArithmeticException、RuntimeException、Exception

B.Exception、ArithmeticException、RuntimeException

C.RuntimeException、Exception、ArithmeticException

D.RuntimeException、ArithmeticException、Exception

正确答案是A