Oracle
1Z0-809 · Question #41
Which three statements are benefits of encapsulation?
The correct answer is A. Allows a class implementation to change without changing t he clients B. Protects confidential data from leaking out of the objects D. Enables the class implementation to protect its invariants. See the full explanation below for the reasoning.
Question
Which three statements are benefits of encapsulation?
Options
- AAllows a class implementation to change without changing t he clients
- BProtects confidential data from leaking out of the objects
- CPrevents code from causing exceptions
- DEnables the class implementation to protect its invariants
- EPermits classes to be combined into the same package
- FEnables multiple instances of the same class to be created safely
How the community answered
(47 responses)- A74% (35)
- C4% (2)
- E6% (3)
- F15% (7)
Community Discussion
No community discussion yet for this question.