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
Can constructor be static or final?
Is a class an object?
What are the restrictions imposed on method overriding?
Name container classes in java programming?
How hashset works internally in java?
What is the java reflection api? Why it’s so important to have?
Do we have pointers in java?
List the interfaces which extends collection interface?
Explain features of interfaces in java?
How to find the given number is a prime number or not by getting input from the user
how to create daemon thread in java?
Is empty set an element of empty set?
When can you say a graph to be a tree?
What is the base class in java from which all classes are derived?
What are void pointers?