首页
外语
计算机
考研
公务员
职业资格
财经
工程
司法
医学
专升本
自考
实用职业技能
登录
计算机
对于下面一段代码的描述中,正确的是______。 public class ex36 { public static void run main(String[] args) throws Excep
对于下面一段代码的描述中,正确的是______。 public class ex36 { public static void run main(String[] args) throws Excep
admin
2012-12-13
25
问题
对于下面一段代码的描述中,正确的是______。 public class ex36 { public static void run main(String[] args) throws Excepion { method(); } static void method() throws Exception try { System.out.println("test"); } finally { System.out.println ("finally"); } } }
选项
A、代码编译成功,输出“test”和“fmally”
B、代码编译成功,输出“test”
C、代码实现选项A中的功能,之后Java停止程序运行,抛出异常,但是不进行处理
D、代码不能编译
答案
A
解析
转载请注明原文地址:https://kaotiyun.com/show/KW2p777K
本试题收录于:
二级Java题库NCRE全国计算机二级分类
0
二级Java
NCRE全国计算机二级
相关试题推荐
不属于Python数据分析及可视化处理的第三方库的是()。
以下关于Python二维数据的描述中,错误的是()。
考生文件夹下存在一个文件“PY102.py”,请写代码替换横线,不修改其他代码,实现以下功能。文件给出字符串,删除字符串开头和末尾的空白,将结果输出到屏幕。试题程序:#请在________处使用一行代码或表达式替换#
确定软件项目是否进行开发的文档是()。
下面关于Python中模块导入的说法错误的是()。
在Python中,不属于组合数据类型的是()。
使用______位置参数,能够使一个部件位于容器的右边。
给出下列代码段:publicclassex38{publicstaticvoidmain(Stringargs[]){
下面不属于标识符的命名规则的是()。
变量作用域是指可访问变量的范围,局部变量在方法中声明,作用域是______。
随机试题
=().
急性下壁心肌梗死最易合并
一足月儿,生后2天,出现黄疸,肝脏略肿大。血总胆红素255μmol/L(15mg/dl),血型A型,Rh阳性,直接抗人球蛋白试验阴性,抗体释放试验IgG抗A抗体阳性。此患儿诊断为
当事人一方为与不特定的多数人进行交易而预先拟定的,且不允许相对人对其内容作任何变更的合同,称为()。
公司信贷客户市场细分的方法中,按照产业生命周期的不同,可划分为新兴产业和夕阳产业。()
根据中国人民银行2005年发布的《全国银行间债券市场金融债券发行管理办法》的规定,商业银行发行金融债券应具备的条件有()。
劳动力的价值是由生产和再生产劳动力所需要的社会必要劳动时间决定的。在劳动力价值构成上,劳动力商品的价值决定与其他商品相比还具有一个突出的特点,这就是()
有以下程序:#include<stdio.h>inta=1.b=2:voidfunl(inta,intb){printf("%d%d",a,b);}voidfun2(){a=3;b=4;}main(){funl(5,6);f
Whenwillthebankopentomorrow?
EuropeancountrieshavebeencarefullywatchingtheviolencethatexplodedacrossFrance,worriedthattheirvehiclesandbuildi
最新回复
(
0
)