Can a class be declared as protected? Ans. The protected access modifier cannot be applied to class and interfaces. Methods, fields can be declared protected, however methods and fields in a interface cannot be declared protected.
Download the Study24x7 App, so you can connect and collaborate.