can't java unchecked exceptions be handled using try/catch block?

后端 未结 8 1877
旧时难觅i
旧时难觅i 2020-12-24 02:29

In a tutorial I found that Unchecked Exception can\'t be handled by your code i.e. we can\'t use try/catch block and the examples are exception

8条回答
  •  生来不讨喜
    2020-12-24 03:11

    Yes, you can throw unchecked exceptions with throw. And yes, you can catch unchecked exceptions in a catch block.

提交回复
热议问题