Question

Which of the following statements about private members in Java is correct?

A They can be accessed directly from any class
B They can be accessed only within the same class
C They can be accessed by all subclasses
D They are accessible within the same package only
E They are always inherited by subclasses
Practice Next

Relevant for Exams:

Hey! Ask a query