What is the catch or declare rule for method declarations?

Q

What is the catch or declare rule for method declarations?

✍: Guest

A

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

2013-06-21, 3139👍, 0💬