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
What are the restrictions imposed by a Security Manager on Applets?.
What is the static field modifier?
What does string intern() method do?
Is ruby built on java?
Which java version is latest?
State the merge-sort principle and its time complexity.
Differences between external iteration and internal iteration?
Write a program to find the whether a number is an Armstrong number or not?
What are inner classes or non static nested classes in java?
How does the garbage collector works in java?
Explain about anonymous inner classes ?
What is hashing in java?
What do you mean by local variable and instance variable?
Why are global variables used?
Explain listiterator and methods in listiterator?