Answer Posted / 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 View All Answers
How to store image in arraylist in java?
Why is singleton instance static?
What is lambda programming?
Can arraylist hold different types java?
Can you override a final method?
Which is bigger float or double?
I want to persist data of objects for later use. What is the best approach to do so?
What is the difference between abstraction and encapsulation?
What are the main differences between notify and notifyAll in Java?
Why string is not thread safe?
Objects or references which of them gets garbage collected?
What is the primary benefit of encapsulation?
what is synchronization and why is it important? : Java thread
What is vector?
Where pragma is used?