@tsing1226
2016-09-29T08:05:59.000000Z
字数 497
阅读 996
java
/**** Try -Catch-Finally Blocks*///1. try block/*try块可以关闭代码异常*/try {//可能抛出异常的代码}//catch,finally 块---------------------------------------------------------//2.catch block//catch块是处理可能出现的异常信息try {} catch(TypeException e) {}try {} catch(TypeException e) {}catch(TypeException e) {}......----------------------------------------------------------//3.finally块//finally块是可以选择的,但是它是推荐使用的,通常是关闭信息,释放空间
参考地址:https://examples.javacodegeeks.com/java-basics/try-catch-finally/try-catch-java-example/
