对try catch finally的理解1.finally 总是会运行的,即使在catch中thorw抛出异常了。2.finally 在 return后没有结束,而是继续运行finally2.顺序的话就是对try-》finally 或者 try-》catch-》finally不管怎样finally一定会运行,并且可以防止进程的影响于是有了这样的写法try{}//没有代码finally{//逻辑代码}
自己的理解,如有错误,还请指出。