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
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
【AssertionError 跟一下那个类是 “is – a”的关系】相关文章
1. AssertionError 跟一下那个类是 “is – a”的关系
2. 软件测试LoadRunner面试题:If web server, database and Network are all fine where could be the problem?
3. 介绍一下ICMP(Internet Control Message Protocol)Internet控制信息协议
4. 什么是Connection-oriented Protocol/Connectionless Protocol面向连接的协议/无连接协议
5. 软件测试LoadRunner面试题:What is correlation? Explain the difference between automatic correlation and manu
6. 软件测试LoadRunner面试题:If you want to stop the execution of your script on error, how do you do that?
7. 请解释一下webService? 如何用.net实现webService
8. 什么是Oracle的后台进程background processes?都有哪些后台进程?
9. Static Nested Class 和 Inner Class的不同
10. 软件测试LoadRunner面试题:How did you find web server related issues?
本文来源:https://www.mianshiwenti.com/a12462.html
进入下载页面
上一篇:Java如何调用外部Exe程序
下一篇:JAVA程序设计笔试题面试题一套
﹝AssertionError 跟一下那个类是 “is – a”的关系﹞相关内容
- 软件测试LoadRunner面试题: Where do you set automatic correlation options?
- 什么时候用assert
- 介绍一下#error预处理
- 描述Cookie和Session的作用,区别和各自的应用范围,Session工作原理
- JSP和EJB可以共享HttpSession么?EJB里面可以改变session里面的内容
- 软件测试LoadRunner面试题:What do vuser_init action and vuser_end action contain?
- 对象的序列化(serialization)类是面向流的,应如何将对象写入到随机存取文件中
- 软件测试LoadRunner面试题:What is the difference between Overlay graph and Correlate graph?
- 如何反序的迭代一个序列?how do I iterate over a sequence in reverse order
- System.Array.CopyTo()和System.Array.Clone()有什么区别