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
Difference between serialization and deserialization in java?
Can we override data members in java?
Print Vertical traversal of a Binary Tree.
What are local variables?
What do you mean by JVM?
What are the main differences between notify and notifyAll in Java?
What is primitive array?
what is inner class in java?
Why are lists ordered in java?
What are the types of strings?
How many bytes are there?
What is variable and rules of variable?
What does flag mean in java?
What is anagram number?
Write a function for palindrome and factorial and explain?