Declaration and Access Control on Java related Questions and Answers


Question :   You want a class to have access to members of another class in the same package. Which is the most restrictive access that accomplishes this objective?
1. public
2. private
3. protected
4. Default Access
Answer :   4 - Default Access  

* 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