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
describe synchronization in respect to multithreading? : Java thread
Can a class have multiple superclasses?
What does the “static” keyword mean? Can you override private or static method in java?
How to avoid memory leak in java?
What does math floor () do?
Can we have multiple public classes in a java source file?
What are the different tags provided in jstl?
Can memory leak happen java?
What is a condition in programming?
Does java arraylist maintain insertion order?
Why is java logo a cup of coffee?
Can we override protected method in java?
Explain how can you debug the Java code?
What is boolean false?
What is general methodology?