Search Interview Questions
| 3235 questions in repository.|
There are more than 200 unanswered questions.
Click here and help us by providing the answer.
Have a video suggestion.
Click Correct / Improve and please let us know.
|Java - Interview Questions and Answers|
|Very Frequently asked across all type of companies and across all levels.|
|Ans. Private - Not accessible outside object scope. |
Public - Accessible from anywhere.
Default - Accessible from anywhere within same package.
Protected - Accessible from object and the sub class objects.
|Help us improve. Please let us know the company, where you were asked this question :|
|Like Discuss Correct / Improve java oop access specifier public private default protected basic interview question HCL Technologies Tata Consultancy (TCS) IBM Wipro Deegit Argonne National Laboratory Motorola Mobility Accenture Accenture India Deegit Cerner basic   frequent|
Try 1 Question(s) Test
|Can we instantiate the object of derived class if parent constructor is protected ?|
|Which access specifiers can be used with top level class ? a. public or default b. public or private c. public or protected d. protected or default|
|Which of the following keyword is not permitted for outer class ?|
|Can a class be declared "protected" ?|