What is recommended if the standard library does not have an exception class that describes your particular error situation?
A) Design your own exception class as a subclass of an existing exception class.
B) Choose RunTimeException from the standard library because it is unchecked and represents a generic exception.
C) Design your own exception class by implementing the Throwable interface.
D) Design your own exception class as a superclass of an existing exception class.
Correct Answer:
Verified
Q98: Consider the following code snippet:
Q99: Consider the following code snippet:
Q100: Which of the following code snippets about
Q101: Which command enables assertion checking during program
Q102: Which of the following statements about assertions
Q103: Which of the following statements about the
Q105: Insert the missing code in the following
Q106: Select the missing expression in the code
Q107: Insert the missing code in the following
Q108: Consider the following code snippet, assuming in
Unlock this Answer For Free Now!
View this answer and more for free by performing one of the following actions
Scan the QR code to install the App and get 2 free unlocks
Unlock quizzes for free by uploading documents