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 do you identify independent and dependent variables?
Is array a class?
What is command line used for?
Is map sorted in java?
Why lambda expression is used in java?
Explain about interthread communication and how it takes place in java?
Can we execute a program without main() method?
How variables are declared?
Which is better stringbuffer or stringbuilder?
what is the messsage u r going to get from an objectoriented programing?
Explain importance of inheritance in java?
What are the parts of a method?
What is the name of the java compiler?
What is sortedmap in java?
What is thread safe in java?