1.

Which of these access specifiers can be used for a class so that its members can be accessed by a different class in the different package?(a) Public(b) Protected(c) Private(d) No ModifierThe question was asked in final exam.The doubt is from Packages in section Interfaces & Packages of Java

Answer»

The CORRECT CHOICE is (a) Public

The BEST EXPLANATION: NONE.



Discussion

No Comment Found

Related InterviewSolutions