What is the catch or declare rule for method declarations

If a checked exception may be thrown within the body of a method, the method musteither catch theexception or declare it in its throws clause.

Showing Answers 1 - 3 of 3 Answers

The catch or declare rule states that if a checked exception is be thrown within the body of a method, the method must either catch the exception or declare it in its throws clause.

  Was this answer useful?  Yes

Give your answer:

If you think the above answer is not correct, Please select a reason and add your answer below.

 

Related Answered Questions

 

Related Open Questions