DEVFYI - Developer Resource - FYI

What is the relationship between a method's throws clause and the exceptions that can be thrown during the method's execution?

Java Interview Questions and Answers (part 2)


(Continued from previous question...)

306. What is the relationship between a method's throws clause and the exceptions that can be thrown during the method's execution?

A method's throws clause must declare any checked exceptions that are not caught within the body of the method.

(Continued on next question...)

Other Interview Questions