what is the difference between the "protected and default"
modifiers?
Answer Posted / firoz
default can be accessable in same class & same package.
protected can be accessed in same class,same package and
subclass.
| Is This Answer Correct ? | 29 Yes | 26 No |
Post New Answer View All Answers
What do you mean by ordered and sorted in collections in java?
Difference between static binding and dynamic binding?
What is the difference between sop and work instruction?
What is toarray method in java?
What are features of java?
What is the main purpose of java?
What is the default size of set in java?
How do you replace a string in java?
What are methods?
How to do a true java ping from windows?
Is space a char?
What is the use of set in java?
What is application tier?
Can we have 2 main methods in java class?
Explain about method local inner classes or local inner classes in java?