difference between errors and unchecked exceptions in java?

后端 未结 7 1089
时光取名叫无心
时光取名叫无心 2020-12-16 18:22

As we know if any error or any unchecked exception occurs then our program will halt, then what are the differences between those?

相关标签:
7条回答
  • 2020-12-16 18:59

    In short:

    You can, and probably should, recover from an exception.

    You can, but should not, recover from an error.

    0 讨论(0)
提交回复
热议问题