What is a protected method?



What is a protected method?..

Answer / Pravendra Singh

In Java, a 'protected' method can be accessed by any class within the same package or by any subclass (derived class) of the defining class.

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More Core Java Interview Questions

what is Assertion?

4 Answers   Wipro,


What is application system?

1 Answers  


What are JVM.JRE, J2EE, JNI?

1 Answers  


What is the length of a string?

1 Answers  


Which containers may have a MenuBar?

1 Answers  


what is the difference between cd & dvd ?

30 Answers   Lovely Professional University, Satyam, Sibylsys,


What is the indent key?

1 Answers  


Can we serialize singleton class?

1 Answers  


What is the difference between assignment and initialization?

1 Answers  


how many access specifiers are available in java

11 Answers  


What is member in java?

1 Answers  


Can an unreachable object become reachable again?

3 Answers   DELL,


Categories