Data hiding, which means that critical data stored inside the object is protected from code outside the object, is accomplished in Java by:
A) using the public access specifier on the class methods
B) using the private access specifier on the class methods
C) using the private access specifier on the class definition
D) using the private access specifier on the class fields
Correct Answer:
Verified
Q8: You should not define a class field
Q9: When you are working with a _,
Q10: Class objects normally have _ that perform
Q11: What is stored by a reference variable?
A)
Q12: One or more objects may be created
Q14: The scope of a private instance field
Q16: Two or more methods in a class
Q17: A constructor:
A) always accepts two arguments
B) has
Q18: What does the following UML diagram entry
Q39: A class specifies the _ and _
Unlock this Answer For Free Now!
View this answer and more for free by performing one of the following actions
Scan the QR code to install the App and get 2 free unlocks
Unlock quizzes for free by uploading documents