Question 3
Answer saved
Flag
question
What is the primary motivation behind using encapsulation in Java?
To achieve data hiding and protect the integrity of an object's state
O b. To enhance code reusability
To simplify code structure
d. To enable unrestricted access to all class members
Clear my choice