Can subclass overriding method declare an exception if parent class method doesn't throw an exception ?
Page 1 of 1
Can subclass overriding method declare an exception if parent class method doesn't throw an exception ?
Yes but only unchecked exception not checked.
Similar topics
» What is the base class for Error and Exception?
» Can you access the private method from outside the class?
» What is difference between Checked Exception and Unchecked Exception?
» What is the difference between the Reader/Writer class hierarchy and the InputStream/OutputStream class hierarchy?
» What is difference between throw and throws?
» Can you access the private method from outside the class?
» What is difference between Checked Exception and Unchecked Exception?
» What is the difference between the Reader/Writer class hierarchy and the InputStream/OutputStream class hierarchy?
» What is difference between throw and throws?
Page 1 of 1
Permissions in this forum:
You cannot reply to topics in this forum