Solved

Define an Exception Class Called DiskDriveNotReady

Question 28

Essay

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.

Correct Answer:

verifed

Verified

public class DiskDriveNotReady...

View Answer

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

Related Questions