Solved

Define an Exception Class Called FileNotFoundException

Question 29

Essay

Define an exception class called FileNotFoundException.The class should have a constructor with no parameters.If an exception is thrown with this zero-argument constructor,getMessage should return "File Not Found!" The class should also have a constructor with a single parameter of type String.If an exception is thrown with this constructor,then getMessage returns the value that was used as an argument to the constructor.

Correct Answer:

verifed

Verified

public class FileNotFoundExcep...

View Answer

Unlock this answer now
Get Access to more Verified Answers free of charge

Related Questions