What are the circumstances under which a finally {} block will NOT execute?

前端 未结 9 1995
没有蜡笔的小新
没有蜡笔的小新 2020-11-30 01:45

In a Java try{} ... catch{} ... finally{} block, code within the finally{} is generally considered \"guaranteed\" to run regardless of what occurs

9条回答
  •  有刺的猬
    2020-11-30 02:20

    There is a chance of partial execution when finally itself throws an exception (or leads to an error)

提交回复
热议问题