black

计算机考试试题及答案解析

登录

单项选择题

给定以下JAVA代码,这段代码编译运行后输出的结果是( )
publicclassTest{
publicstaticintaMethod(inti)throwsException{
try{
returni/10;
}catch(Exceptionex){
thrownewException('exceptioninaaMothod');
}finally{
System.out.print('finally');
}
}
publicstaticvoidmain(String[]args){
try{
aMethod(0);
}catch(Exceptionex){
System.out.print('exceptioninmain');
}
System.out.print('finished');
}
}
A、finallyexceptioninmainfinished
B、exceptioninmainfinally
C、finallyfinished
D、finallyexceptioninmainfinished

A.out.print('finally');
}
}
publicstaticvoidmain(String[]args){
try{
aMethod(0);
}catch(Exceptionex){
System.out.print('exceptioninmain');
}
System.out.print('finished');
}
}
A、finallyexceptioninmainfinished
B、exceptioninmainfinally
C、finallyfinished
D、finallyexceptioninmainfinished
相关考题

单项选择题 将十进制数119.275转换成二进制数约为()。A、1110111.011B、1110111.01C、1110111.11D、1110111.10

单项选择题 在Word 2010中,可以在页面内容后面插入虚影的文字,这种特殊的文本效果被称为( ) 。

单项选择题 下列四个IP地址中,______是错误的。A:60.268.35.128 B:204.19.208.10 C:162.128.65.234 D:112.58.0.39

All Rights Reserved 版权所有©计算机考试题库(jsjtiku.com)

备案号:湘ICP备14005140号-4

经营许可证号:湘B2-20140064