Does Exception specification is a part of method signature?
What I mean is:
public void someMethod(String myString) throws IOException
is ‘throws IOException‘ a part of a signature of this method?
Thanks
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
Following up on Jon Skeet’s answer and in response to the comment
Section 8.4.6 of the Java Language Specification (3rd ed) says:
It’s not a matter of method signature here, but a matter of not requiring callers to account for exceptions that aren’t required to be checked by the ‘original’ method they are calling.