What change, if any, should be made to the following method to improve security? A. On line
Question:
What change, if any, should be made to the following method to improve security?
A. On line 10, the method should be marked private.
B. On line 15, an ArrayList instance should be returned instead of an unmodifiable list.
C. Prior to line 16, the fileName should be validated against a list of constants.
D. The exception on line 18 should be removed and an empty List should be returned.
E. None of the above, as the code is safe as is.
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: