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
What do you mean by an object in java?
What is class array in java?
How do you do exponents in java?
Differentiate between a class and an object.
What does g mean in regex?
What is a boolean expression in java?
Why vector class is used?
What is the difference between conversation & casting?
What is anti pattern in programming?
what is function overloading in java?
What is the difference between the jdk 1.02 event model and the event-delegation model introduced with jdk 1.1?
What is a boolean used for?
Can we compare two strings in java?
Can we use a default constructor of a class even if an explicit constructor is defined?
why an outer class cannot be declared as private?