Does it matter in what order catch statements for FileNotFoundException and IOException are written?
Question
Does it matter in what order catch statements for FileNotFoundException and IOException are written?
Answer
Yes, it does. The FileNoFoundException is inherited from the IOException. Exception’s subclasses have to be caught first.