Question: 2. When the compiler insists that an Exception be handled, the *FIRST* thing to consider in deciding whether to provide a catch block VS. adding
2. When the compiler insists that an Exception be "handled", the *FIRST* thing to consider in deciding whether to provide a catch block VS. adding a "throws clause" to the end of the method declaration line is: A. What kind of Exception is being thrown? B. Can this Exception situation be adequately fixed in local (catch block) code? C. Can this Exception optionally be not caught? D. Who is throwing the Exception to my code? (Who am I calling?) E. Who will be catching the Exception if I throw it back to my caller? (Who is calling me?) F. All of the above
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
