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.)
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:
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: