what is the difference between the "protected and default"
modifiers?
Answer Posted / ravikiran
protected access is with in the same package and subclasses
outside the package
default access is with in the same package only
Is This Answer Correct ? | 38 Yes | 3 No |
Post New Answer View All Answers
When object is created and destroyed?
What is java ceil?
What is the difference between reader/writer and inputstream/output stream?
Why does java have two ways to create child threads?
What are the types of arrays in java?
What is a parameter in java?
How does the java compiler work?
What is broken and continue statement?
Why is java called the platform independent programming language?
What is meant by object?
what are synchronized methods and synchronized statements? : Java thread
How do you add an element to a set in java?
How to make object serializable in java?
Explain enumeration in java?
How do you declare a variable?