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 is meant by method?
What are the 6 mandatory procedures for iso 9001?
Enlist diffrent types of inheritance supported by java?
What is a linkedhashmap java?
what is the use of bean managed and container managed with example?
Which is better ascii or unicode?
How many bytes are there?
What is generic type?
Why is inheritance used in java?
What is sorting algorithm in java?
What is the formula to calculate percentage?
When should I use singleton?
What does %d do in java?
What is a default constructor and also define copy contrucyor?
What are the 2 types of java programs?