finally in exception handling

后端 未结 8 1625
甜味超标
甜味超标 2021-01-18 17:08

What exactly does a finally block in exception handling perform?

8条回答
  •  有刺的猬
    2021-01-18 18:00

    It executes no matter if you get into the catch block or not, meaning that is a great place for disposing of objects and doing other cleanups.

提交回复
热议问题