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 fields
D) using the private access specifier on the class definition
Correct Answer:

Verified
Correct Answer:
Verified
Q19: Java allows you to create objects of
Q20: A constructor _.<br>A) always accepts two arguments<br>B)
Q21: Shadowing is the term used to describe
Q22: One or more objects may be created
Q23: When an object is passed as an
Q25: Which of the following is not involved
Q26: The java.lang package is automatically imported into
Q27: A reference variable stores a(n) _.<br>A) binary
Q28: A constructor is a method that is
Q29: Class objects normally have _ that perform