Question: Which techniques best prevent sensitive objects from being manipulated by an attacker who wants to create a malicious subclass? (Choose three.) A. Add final to
Which techniques best prevent sensitive objects from being manipulated by an attacker who wants to create a malicious subclass? (Choose three.)
A. Add final to the class declaration.
B. Set protected as the access level for all method declarations.
C. Add final to all method declarations.
D. Add final to all instance variable declarations.
E. Add final to all constructors.
F. Set private as the access level for all constructors.
Step by Step Solution
3.45 Rating (158 Votes )
There are 3 Steps involved in it
The correct answers are A C F A Add final to the class declaration A final class cannot be subclasse... View full answer
Get step-by-step solutions from verified subject matter experts
