Does it matter in what order catch statements for FileNotFoundException and IOException are written?
Short Answer
Views 1379
Answer:
Yes, it does. The FileNoFoundException is inherited from the IOException. Exception's subclasses have to be caught first.
Related Articles:
This section is dedicated exclusively to Questions & Answers. For an in-depth exploration of Java Programming Language, click the links and dive deeper into this subject.
Join Our telegram group to ask Questions
Click below button to join our groups.