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

1 Expert Approved Answer
Step: 1 Unlock

The correct answers are A C F A Add final to the class declaration A final class cannot be subclasse... View full answer

blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Oracle Questions!