Does it matter in what order catch statements for FileNotFoundException and IOException are written?

Java Programming Language >   Managing Errors and Exception >   About Java Tutorial  

Short Question

1510


Answer:

Yes, it does. The FileNoFoundException is inherited from the IOException. Exception's subclasses have to be caught first.


This Particular section is dedicated to Question & Answer only. If you want learn more about Java Programming Language. Then you can visit below links to get more depth on this subject.




Join Our telegram group to ask Questions

Click below button to join our groups.