Declaration and Access Control on Java related Questions and Answers


Question :   Given a method in a protected class, what access modifier do you use to restrict access to that method to only the other members of the same class?
1. final
2. static
3. private
4. protected
Answer :   3 - private  

* 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