Sail E0 Webinar
Question
Which of this access specifies can be used for a class so that its members can be accessed by a different class in the same package?
Options:
A .  Public
B .  Protected
C .  No Modifier
D .  All of the mentioned
Answer: Option D


Either we can use public, protected or we can name the class without any specifier.



Was this answer helpful ?
Next Question

Submit Solution

Your email address will not be published. Required fields are marked *

Latest Videos

Latest Test Papers