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 the java project architecture?
How do you sort arraylist in descending order?
How can you make sure that your singleton class will always return single instance in multi-threaded environment?
How to sort an unsorted array in java?
Why is string buffer better than string ?
What is Enum in Java?
What is the difference between int and integer in java?
How static variable work in java?
Convert Binary tree to linked list.
What is the main use of generics in java?
How would you convert bytes to string?
Define a package.
What are the access modifiers in java?
What are scriptlets?
What is the point of java?