Search Interview Questions | More than 3000 questions in repository. There are more than 900 unanswered questions. Click here and help us by providing the answer. Have a video suggestion. Click Correct / Improve and please let us know. |
|
| ||||
Core java - Interview Questions and Answers for 'Argonne national laboratory' - 1 question(s) found - Order By Newest | ||||
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   public vs private vs default vs protected Asked in 12 Companies basic   frequent | ||||
Try 1 Question(s) Test | ||||
Related Questions | ||||
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 | ||||
Can we instantiate the object of derived class if parent constructor is protected ? | ||||
Which of the following keyword is not permitted for outer class ? | ||||
Can a class be declared "protected" ? | ||||