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 heap memory?
What are the drawbacks for singleton class?
What is ide with example?
Should database connections be singleton?
Can you use abstract and final both with a method?
When a lot of changes are required in data, which one should be a preference to be used? String or stringbuffer?
What do you know about the garbage collector?
Difference between linkedlist and arraylist.
What is a bubble sort in java?
how to deploy apache tomcat server to weblogic server in java
Why is String immutable?
How do you bind variables?
Why java strings are immutable in nature?
what is synchronization? : Java thread
What is the meaning of 3 dots in java?