Which statements about the following line of code are correct? (Choose three.) throw new IllegalArgumentException (); A.
Question:
Which statements about the following line of code are correct? (Choose three.)
throw new IllegalArgumentException ();
A. The method where this is called must declare a compatible exception.
B. The code where this is called can include a try-with-resources block that handles this exception.
C. This exception should not be handled or declared.
D. The code where this is called can include a try/catch block that handles this exception.
E. This exception should be thrown only at the start of a method.
F. This exception does not need to be handled by the method in which it is called.
Fantastic news! We've Found the answer you've been seeking!
Step by Step Answer:
Related Book For
OCP Oracle Certified Professional Java SE 11 Developer Practice Tests Exam 1Z0 819 And Upgrade Exam 1Z0 817
ISBN: 9781119696131
1st Edition
Authors: Scott Selikoff, Jeanne Boyarsky
Question Posted: