Youve been hired by Charlie Sweets to perform a security audit of their login system. After reviewing

Question:

You’ve been hired by Charlie Sweets to perform a security audit of their login system. After reviewing the following code, what recommendations would best improve the security of their system? (Choose three.) 

image text in transcribed

A. Mark the check() method final on line 2.

B. Remove the null check on line 7.

C. Rewrite to not use var on lines 6, 8, and 9, as it is inherently unsafe.

D. Rewrite to use readPassword() on line 8.

E. Rewrite to use readPassword() on line 9.

F. Change or remove line 10.

Fantastic news! We've Found the answer you've been seeking!

Step by Step Answer:

Question Posted: