Multiple Choice
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
Correct Answer:
Verified
Q9: A method that stores a value in
Q48: An access specifier indicates how the class
Q49: When you are working with a _,
Q51: In the cookie cutter metaphor, think of
Q52: Given the following code, what will be
Q53: What is stored by a reference variable?<br>A)
Q54: The term "default constructor" is applied to
Q56: Most programming languages that are in use
Q57: A constructor:<br>A) always accepts two arguments<br>B) has
Q58: Instance methods should be declared static.