Define an exception class called DiskDriveNotReady.

The class should have a constructor with no
parameters. If an exception is thrown with this zero-argument constructor, getMessage should
return “Disk Drive Not Ready!” 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 DiskDriveNotReadyException extends Exception
{
public DiskDriveNotReadyException()
{
super("Disk Drive Not Ready!");
}

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

```

Computer Science & Information Technology

You might also like to view...

You can customize a SmartArt graphic by adding pictures to the background of the shapes within the graphic

Indicate whether the statement is true or false

Computer Science & Information Technology

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

1) GroupBoxes have a text display and can have scrollbars inserted into them. 2) Panels have the ability to have scrollbars should their contents get too big. 3) The AutoScroll property will cause a Panel to scroll to the bottom if the controls displayed are too large. 4) GroupBoxes can display captions and do not include scrollbars, whereas Panels can include scrollbars and do no include a caption.

Computer Science & Information Technology