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
How is it possible for two string objects with identical values not to be equal under the == operator?
What is a stringbuilder?
What does substring mean?
Are registers volatile?
What is a boolean output?
What is heterogeneous in java?
How to access arraylist elements in java?
This abstract class is correct ? abstract class A { public abstract void Disp(); public abstract void B() { } public absract virtual C() { } }
What is extension method in java?
When do you call copy constructor?
How do you sort arraylist in descending order?
Explain oops concepts in detail?
What does void * mean?
What does it mean that strings are immutable?
What do you mean by exception handling in Java?