Multiple Choice
Which of the following statements is true?
A) Methods and instance variables can both be either public or private.
B) Information hiding is achieved by restricting access to class members via keyword public.
C) The private members of a class are directly accessible to the client of a class.
D) None of the above is true.
Correct Answer:

Verified
Correct Answer:
Verified
Q7: A constructor cannot:<br>A)be overloaded.<br>B)initialize variables to their
Q14: What happens when this is used in
Q22: Which syntax imports all static members of
Q22: Which of the following is false?<br>A) Method
Q24: When implementing a method,use the class's set
Q24: A package is:<br>A)A directory structure used to
Q26: Composition is sometimes referred to as a(n)_.<br>A)is-a
Q27: Which statement is false?<br>A)An enum declaration is
Q29: The static method _ of class String
Q30: Which of the following should usually be