Can a class be declared "protected" ?
Javasearch.buggybread.com

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.
Label / Company      Label / Company / Text

   



Java - Interview Questions and Answers

 Q1. Can a class be declared "protected" ?Core Java2017-06-23 08:08:34

Ans. No, only methods can be declared protected.

 Help us improve. Please let us know the company, where you were asked this question :   

   Like         Discuss         Correct / Improve     protected  modifiers


Related Questions

  Difference between Public, Private, Default and 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
  Can we instantiate the object of derived class if parent constructor is protected ?
  Which of the following keyword is not permitted for outer class ?



Help us and Others Improve. Please let us know the questions asked in any of your previous interview.

Any input from you will be highly appreciated and It will unlock the application for 10 more requests.

Company Name:
Questions Asked: