Valid 1Z0-803 Dumps shared by ExamDiscuss.com for Helping Passing 1Z0-803 Exam! ExamDiscuss.com now offer the newest 1Z0-803 exam dumps, the ExamDiscuss.com 1Z0-803 exam questions have been updated and answers have been corrected get the newest ExamDiscuss.com 1Z0-803 dumps with Test Engine here:
A method doSomething () that has no exception handling code is modified to trail a method that throws a checked exception. Which two modifications, made independently, will allow the program to compile?
Correct Answer: B,D
Explanation/Reference: Valid Java programming language code must honor the Catch or Specify Requirement. This means that code that might throw certain exceptions must be enclosed by either of the following: * A try statement that catches the exception. The try must provide a handler for the exception, as described in Catching and Handling Exceptions. * A method that specifies that it can throw the exception. The method must provide a throws clause that lists the exception, as described in Specifying the Exceptions Thrown by a Method. Code that fails to honor the Catch or Specify Requirement will not compile.