阅读背景:

为什么变量不能在“catch”或“finally”中在“try”中声明?

来源:互联网 

In C# and in Java (and possibly other languages as well), variables declared in a "try" block are not in scope in the corresponding "catch" or "finally" blocks. For example, the following code does not compile:In C# and in Java (and possibly other languages




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

分享到: