Examveda

How can a protected modifier be accessed?

A. accessible only within the class

B. accessible only within package

C. accessible within package and outside the package but through inheritance only

D. accessible by all

Answer: Option C


This Question Belongs to Java Program >> Miscellaneous In Java

Join The Discussion

Related Questions on Miscellaneous in Java