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 an example of character?
Why is method overloading not possible by changing the return type in java?
What is a qms manual?
What is parse method?
How do you define a method?
Can memory leak happen java?
What are the four integer types supported by java?
What is class array in java?
Why super is first line in java?
Difference between operator overloading and function overloading
Why is java multithreaded?
What is lifetime variable?
How do you remove duplicates from an array in java?
Can we restart a dead thread in java?
How list contains works in java?