1.

Which one of the following is not an access modifier?(a) Public(b) Private(c) Protected(d) VoidThe question was posed to me in an international level competition.Enquiry is from Access Control in chapter Classes and Methods of Java

Answer» RIGHT ANSWER is (d) Void

The explanation is: Public, PRIVATE, protected and DEFAULT are the access MODIFIERS.


Discussion

No Comment Found

Related InterviewSolutions