面试啦 - 提供专业面试问题及答案、面试技巧、助您成功面试!
您的当前位置:首页 > 面试题库 > IT面试题 > JAVA程序员 > 正文

AssertionError 跟一下那个类是 “is – a”的关系

1. RuntimeException
2. Error
3. VirtualMachineError
4. IllegalAccessException
5. Throwable
答案:
答案:2
The class AssertionError is an Error, which denotes an “incorrect condition” as opposed to an “unusual condition” (Exception). Since, the class Error descends from Throwable, AssertionError also has “is-a” relationship with Throwable. Here is the hierarchy –

java.lang.Object

|

+-java.lang.Throwable

|

+-java.lang.Error

|

+-java.lang.AssertionError
词条:java面试题 java程序员面试题
上一篇:Java如何读取CLOB字段 下一篇:GC是什么?为什么要有GC?
与该文相关的文章

温馨提示:如果您对面试网有任何建议,请通过网站联系邮箱向我们反馈,感谢各位的建议与支持!