MCQ
Single Best Answer
Not Set
QSuppose a class has public visibility. In this class we define a protected method. Which of the following statements is correct?
ID: #2103
Declaration and Access Control in Java
4,213 views
Question Info
#2103Q ID
Not SetDifficulty
Declaration and Access Control in JavaTopic
Your Answer
Choose the Best Option
Click any option to instantly check if you're correct.
Correct Answer: Option D
Explanation
This method is accessible from within the class itself and from within all classes defined in the same package as the class itself.
Continue Practice
Share
Share This Question
Challenge a friend or share with your study group.
More from This Topic