Solved

If the Current Method in a Program Will Not Be

Question 96

Multiple Choice

If the current method in a program will not be able to handle an exception, what should be coded into the method?


A) The throws clause should list the name of the method to which the exception should be passed.
B) The method declaration should be enclosed in a try/catch block.
C) The method should include a try/catch block for all possible exceptions.
D) The throws clause should list the names of all exceptions that the method will not handle.

Correct Answer:

verifed

Verified

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

Related Questions

Unlock this Answer For Free Now!

View this answer and more for free by performing one of the following actions

qr-code

Scan the QR code to install the App and get 2 free unlocks

upload documents

Unlock quizzes for free by uploading documents