Declaration and Access Control on Java related Questions and Answers


Question :   You want subclasses in any package to have access to members of a superclass. Which is the most restrictive access that accomplishes this objective?
1. public
2. private
3. protected
4. transient
Answer :   3 - protected  

* Be the First to Post a Comment.

Submit comment :


Captcha Image
Reload

Ask Question

Captcha Image
Reload

Note : Name and Email never shown.





Subscribe


Become a part of EducationForever. Subscribe to our FREE Newsletter