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 a boolean field?

0 Answers  


How do you create an array in java?

0 Answers  


What does a boolean method return?

0 Answers  


Explain what access modifiers can be used for variables?

0 Answers  


Is java 1.7 the same as java 7?

0 Answers  






How you can create a radio buttion using Checkbox class?

1 Answers  


Explain what is Marker interface?

0 Answers   BirlaSoft,


How a class can implement an interface?

5 Answers   SysArc,


Describe the term diamond problem.

0 Answers  


Is vector synchronized in java?

0 Answers  


Under what conditions is an object’s finalize() method invoked by the garbage collector?

0 Answers  


What are aggregate functions explain with examples?

0 Answers  


Categories