题目内容
1.publicclassa{
2.publicvoidmethod1(){
3.try{
4.Bb=newb();
5.b.method2();
6.//morecodehere
7.}catch(TestExceptionte){
8.thrownewRuntimeException(te);
9.}
10.}
11.}
1.publicclassb{
2.publicvoidmethod2()throwsTestException{
3.//morecodehere
4.}
5.}
1.publicclassTestExceptionextendsException{
2.}
Given:
31.publicvoidmethod(){
32.Aa=newa();
33.a.method1();
34.}
WhichistrueifaTestExceptionisthrownonline3ofclassb?()
查看答案
搜索结果不匹配?点我反馈
更多问题