Search Interview Questions | Click here and help us by providing the answer. Click Correct / Improve and please let us know. |
|
|||
|
| ||||
| Core Java - Interview Questions and Answers for 'Protected' - 3 question(s) found - Order By Rating | ||||
| ||||
| Ans. No, only methods can be declared protected. | ||||
| ||||
| 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. | ||||
| ||||
| Ans. Yes, as protected constructor is accessible in sub class. | ||||