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
Which number is denoted by leading zero in java?
What is the byte range?
What is Garbage Collection in Java
Can I uninstall java?
What is used of static keyword in java?
Explain about class in java?
Does java runtime require a license?
How can you say java is object oriented?
What is a line break example?
Can we extend singleton class?
Why string is immutable with example?
How do you start a thread?
What is the use of flag?
How do you remove duplicates in java?
Can we have 2 main methods in java class?