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? 

image text in transcribed

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:

Question Posted: