阅读背景:

为什么尝试. .catch块需要括号吗?

来源:互联网 

While in other statements like if ... else you can avoid braces if there is only one instruction in a block, you cannot do that with try ... catch blocks: the compiler doesn't buy it. For instance:While in other statements like if ... else you




你的当前访问异常,请进行认证后继续阅读剩余内容。

分享到: