what is the difference between the "protected and default"
modifiers?
Answer Posted / naveen
default is accessble with in package only, protectd is also
same but if any class out side the package extends the
protected class then it is also accesesible means all sub
classes(what ever the package) of protechted class can
access the protected class what ever the package
i know this answer if any one has another one or if it is
not correct answer than post a correct answer
| Is This Answer Correct ? | 64 Yes | 7 No |
Post New Answer View All Answers
Give few difference between constructor and method?
What is substring in java?
What is bitwise complement?
Explain about version control?
What is the structure of java?
What does string [] args mean?
What are the differences between include directive and include action?
Is null false in java?
What is java dot?
What are design patterns and please explain?
Can we change the scope of the overridden method in the subclass?
If an object is garbage collected, can it become reachable again?
What is a line separator in java?
What is a Null object?
What is a stringbuffer?