英语翻译
英语翻译
The try block
If you’re inside a method and you throw an exception (or another method you call within this method throws an exception),that method will exit in the process of throwing.If you don’t want a throw to exit the method,you can set up a special block within that method to capture the exception.This is called the try block because you “try” your various method calls there.The try block is an ordinary scope,preceded by the keyword try:
The try block
If you’re inside a method and you throw an exception (or another method you call within this method throws an exception),that method will exit in the process of throwing.If you don’t want a throw to exit the method,you can set up a special block within that method to capture the exception.This is called the try block because you “try” your various method calls there.The try block is an ordinary scope,preceded by the keyword try:
英语人气:812 ℃时间:2020-05-27 05:44:38
优质解答
试验块 重新如果你'在方法和你里面抛出一个异常(或者你叫的另一种方法在内这几次方法抛出一个异常) ,那种方法将在投过程中退出.如果你指导老师' t 想要一投退出方法,你能供养一特别街区在捕获例外的那种方法内.这被...
我来回答
类似推荐
猜你喜欢
- 1你今天早上吃什么早餐,what do you today moring eat breakfast,这样对吗,外国人能听懂吗,
- 2黄赤交角的大小与地轴和黄道面夹角的关系是?与回归线的关系是?与极圈的关系是?
- 31.把椭圆x^2/9+y^2/4=1上每个点的横坐标不变纵坐标缩短为原来的一半,所得曲线的方程是什么?(个人答案是x^2/9+y^2/16=1,但标准答案是x^2/9+y^2=1,缩短为原来的一半不是1/2y么,
- 4任意角的集合可以与实数集R之间建立一种一一对应关系
- 512分之11减11分之10的差绝对值加11分之10减12分之11
- 6我有一个气缸直径63MM行程400MM,我的气压6公斤推出力有多少
- 7请高手解答初一数学题1
- 8压强小有什么好处?
- 9整理一批图书,由一个人做要40小时完成.现计划由一部分人先做4小时,再增加2人和他们一起做8小时,完成这项工作.假设这些人的工作效率相同,具体应先安排多少人工作?
- 10苏教版 六年下学期数学试卷(四)