Important Notice: Our web hosting provider recently started charging us for additional visits, which was unexpected. In response, we're seeking donations. Depending on the situation, we may explore different monetization options for our Community and Expert Contributors. It's crucial to provide more returns for their expertise and offer more Expert Validated Answers or AI Validated Answers. Learn more about our hosting issue here.

Checked exception must be caught or declared, how about unchecked ones?

0
Posted

Checked exception must be caught or declared, how about unchecked ones?

0

Checked exception must be caught or declared in the method throws statement. Unchecked Exception is not required to do the same. However, if you do, it does not cause an error either.Something must be specified does not imply Something else must not be specified The preferred way to deal with unchecked exception is put in javadoc, give programmer a warning.

Related Questions

What is your question?

*Sadly, we had to bring back ads too. Hopefully more targeted.