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.


```
public class FileNotFoundException extends Exception
{
public FileNotFoundException()
{
super("File Not Found!");
}

public FileNotFoundException(String message)
{
super(message);
}
}

```

Computer Science & Information Technology

You might also like to view...

Case-Based Critical Thinking QuestionsCase 3-1Ethan is preparing a lecture about the software available for working with photos, videos, music, and other media. He asks James, who is an expert in computers, some questions. Choose the best aswer to each question. Ethan asks James which of the following can be considered a software player?

A. Blu-ray player B. VCR C. QuickTime D. DVD player

Computer Science & Information Technology

Formula AutoComplete is a feature that offers a list of valid functions and names beginning with the letter that you type following the = sign.  _________________________

Answer the following statement true (T) or false (F)

Computer Science & Information Technology

OUs can be used to assign permissions to objects that it contains.

a. true b. false

Computer Science & Information Technology

XHTML is the acronym for ________.

Fill in the blank(s) with the appropriate word(s).

Computer Science & Information Technology