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
What is class??
What are the advantages of encapsulation in java?
What is merge sort in java?
How do I enable java in safari?
Tell me the Importent classes in net package?
Explain jdk, jre and jvm?
What are the important features of Java 10 release?
A non-static inner class may have object instances that are associated with instances of the class’s outer class. A static inner class does not have any object instances.
What is the order of arraylist in java?
What is the difference between Java Program Constructor and Java Program Method, What is the purpose of Java Program constructor Please Explain it Breafily?
What is the common usage of serialization? What exceptions occur during serialization?
Is a copy constructor?
What design pattern you have used in your project? I answered Factory pattern, how it is implemented? What are its advantage? Do know about Abstract Factory?
How to declare objects of a class ?
What is derived datatype?