What is protected and friendly?



What is protected and friendly?..

Answer / priyavarzhni

Protected: the method of a class os accessed only when the
other class inherits it.
Friendly: no need for inheritance. we can access the methods

Is This Answer Correct ?    3 Yes 2 No

Post New Answer

More Core Java Interview Questions

What is the use of math abs in java?

0 Answers  


why java does compile time polymorphism at run time ?

6 Answers   CTS, TCS,


What is the purpose of the strictfp keyword?

0 Answers  


What is return null in java?

0 Answers  


How do you square a number in java?

0 Answers  






What is the collection interface?

0 Answers  


Can we convert stringbuffer to string?

0 Answers  


What are the types of strings?

0 Answers  


What is unsigned char?

0 Answers  


what's diff between struts 1.1 & 1.2

3 Answers   Wipro,


What is the use of generics? When was it added to the Java development Kit?

0 Answers   Impetus,


Can static method access instance variables ?

0 Answers  


Categories