当前位置: 答题翼 > 问答 > 计算机类考试 > 正文
目录: 标题| 题干| 答案| 搜索| 相关
问题

publicstaticvoidparse(Stringstr){try{floatf=Float.parseFloat(str);}catch(NumberFormatExcep


publicstaticvoidparse(Stringstr){try{floatf=Float.parseFloat(str);}catch(NumberFormatExceptionnfe){f=0;}finally{System.out.println(f);}}publicstaticvoidmain(String[]args){parse(”invalid”);}Whatistheresult?()

A.0.0

B.Compilationfails.

C.AParseExceptionisthrownbytheparsemethodatruntime.

D.ANumberFormatExceptionisthrownbytheparsemethodatruntime.

参考答案
您可能感兴趣的试题
  • 下列程序段的功能是实现“学生”表中“年龄”字段值加1Dim Str As StringStr=”________________”Docm

  • 关于TR的叙述错误的是A.TR主要决定图像的T1对比B.TR越大,T1的权重越小C.是脉冲序列执行一次所需

  • 在C#中,表示一个字符串的变量应使用以下哪条语句定义?A、CStringstr;B、stringstr;C、Dimstrasstr

  • 下列哪种情况可形成质子密度加权像A、长TR,短TEB、长TR,长TEC、短TR,短TED、长TRE、短TR

  • 在自旋回波序列中,T1加权像是指A.长TR,短TE所成的图像B.长TR,长TE所成的图像C.短TR,短TE所成的图

  • 有一A,B,C三组分的混合物,经色谱分离后,其保留时间分别为:tR(A)=4.5min,tR(B)=7.5min,tR(C)=10.4min,死时间