在try的括号里面有return一个值,那在哪里执行finally里的代码()。
第1题:
A.Theprogramrunsandprintsnothing.
B.Theprogramrunsandprints“Finally”
C.Thecodecompiles,butanexceptionisthrownatruntime.
D.Thecodewillnotcompilebecausethecatchblockismissing.
第2题:
下列描述中,正确的是______。
A.finally代码段在发生异常时不一定必须执行
B.异常机制可以用于流程控制
C.在catch代码段中可以使用return语句来返回到异常抛出点
D.可以把catch到的异常对象再次抛出,使上层try-atch结构继续处理该异常事件
第3题:
A.Theprogramrunsandprintsnothing.
B.Theprogramrunsandprints“Finally”
C.Thecodecompiles,butanexceptionisthrownatruntime.
D.Thecodewillnotcompilebecausethecatchblockismissing.
第4题:
在JAVA中,关于捕获错误的语法try-catch-finally的下列描述正确的是()。
第5题:
try {}里有一个return语句,那么紧跟在这个try后的finally {}里的code会不会被执行,在return前还是后?
第6题:
此题为判断题(对,错)。
第7题:
6,try {}里有一个return语句,那么紧跟在这个try后的finally {}里的code会不会被执行,什么时候被执行,在return前还是后?
第8题:
A.Finally
B.Compilationfails.
C.Thecoderunswithnooutput.
D.Anexceptionisthrownatruntime.
第9题:
此题为判断题(对,错)。
第10题:
下列关于异常说法错误的是()