1.

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?(a) Public(b) Protected(c) No Modifier(d) All of the mentioned

Answer» Correct option is (d) All of the mentioned

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


Discussion

No Comment Found

Related InterviewSolutions