1.

Filenotfoundexception Is Inherited From The Base Class Ioexception. When Trying To Catch Blocks For These Exceptions, Is It Necessary To Follow A Particular Order For The Catch Block Statements?

Answer»

Yes it is important to follow a particular order for the CATCH block STATEMENT for the TWO exceptions. The subclasses EXCEPTION i.e. FILENOTFOUNDEXCEPTION has to be caught first.

Yes it is important to follow a particular order for the catch block statement for the two exceptions. The subclasses exception i.e. FileNotFoundException has to be caught first.



Discussion

No Comment Found