Chapter 11: Problem 18
If a method has a throw statement, does it always have to have a throws clause in its header? Why or why not?
Short Answer
Expert verified
Answer: No, it is not necessary for a method with a throw statement to always have a "throws" clause in its method header. This depends on whether the exception being thrown is checked or unchecked. For checked exceptions, the method must have a throws clause if the exception is not handled within the method, while for unchecked exceptions, a throws clause is not required.