Which of the following statements is correct?
A) If a checked exception is likely to be caught in a higher-level method, declare that it can occur using a catch clause.
B) If an exception is recoverable in the current method, handle the exception in the current method.
C) If an unchecked exception is is likely to be caught in a higher-level method, use a @catch tag to document this fact in the Javadoc comment for the method.
D) If an unchecked exception is likely to be caught in a higher-level method, declare that it can occur using a throws clause.
Correct Answer:
Verified
Q30: _ errors occur during program execution .
Q31: The _ is thrown when a program
Q32: The class _ is the superclass of
Q33: Which of the following would cause an
Q34: A(n) _ is an error that is
Q36: The _ represent error conditions that may
Q37: Exception classes that are subclasses of _
Q38: Which of the following is a RuntimeException?
A)
Q39: Classes that are not part of a
Q40: _ visibility is for members of a
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