what is the difference between the "protected and default"
modifiers?
Answer Posted / ravikiran
protected access is with in the same package and subclasses
outside the package
default access is with in the same package only
| Is This Answer Correct ? | 38 Yes | 3 No |
Post New Answer View All Answers
What is a parent class in java?
What is private public protected in java?
What is a variable in java?
Can we have 2 main methods in java class?
What is the purpose of the finalize() method?
What super () does in java?
What is meant by data hiding in java?
What about member inner classes?
Why stringbuilder is not thread safe in java?
How do you delete a list in java?
Explain different ways of creating a thread?
Write a java program to generate fibonacci series ?
What is indexof?
Suppose if we have variable ' I ' in run method, if I can create one or more thread each thread will occupy a separate copy or same variable will be shared?
If an object is garbage collected, can it become reachable again?