题目内容

ClassTestException1.publicclassTestExceptionextendsException{2.}Classa:1.publicclassa{2.3.publicStringsayHello(Stringname)throwsTestException{4.5.if(name==null){6.thrownewTestException();7.}8.9.returnHello+name;10.}11.12.}Aprogrammerwantstousethiscodeinanapplication:45.Aa=newA();46.System.out.println(a.sayHello(”John”));Whichtwoaretrue?()

A. Classawillnotcompile.
B. Line46canthrowtheuncheckedexceptionTestException.
C. Line45canthrowtheuncheckedexceptionTestException.
D. Line46willcompileiftheenclosingmethodthrowsaTestException.
E. Line46willcompileifenclosedinatryblock,whereTestExceptioniscaught.

查看答案
更多问题

消费者的心理活动过程包括()

A. 认识过程
B. 情感过程
C. 决策过程
D. 交流过程
E. 意志过程

消费者在进行购买决策时,信息搜集的渠道主要有()

A. 个人来源
B. 商业来源
C. 公众来源
D. 经验来源
E. 企业来源

以下不属于新时代的曙光的是()

A. 世界的发现
B. 人的发现
C. 科学的发现
D. 理性的发现

|r|=1时说明x和y两个变量强相关。()

答案查题题库