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


c. using the private access specifier on the class fields

Computer Science & Information Technology

You might also like to view...

Text in a new blank presentation is ________

A) black or brown B) black or grey C) black or blue D) blue or grey

Computer Science & Information Technology

Most large companies require systems that combine transaction processing, business support, knowledge management, and user productivity features.

Answer the following statement true (T) or false (F)

Computer Science & Information Technology

Employee onboarding refers to the tasks associated with hiring a new employee.

Answer the following statement true (T) or false (F)

Computer Science & Information Technology

The operation _____ retrieves the element at the rear of the queue.

A. pop B. rear C. dequeue D. queue rear

Computer Science & Information Technology