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 an example of a conditional statement?
what is instanceof operator used in java?
What are different access specifiers in java?
Is list thread safe in java?
Where are register variables stored?
Tell me about your ability to work under pressure
What is a “stateless” protocol ?
What is the use of parse function in java?
What is the requirement of thread in java?
What is the epoch date?
Suppose if we have variable ' I ' in run method, if I can create one or more thread each thread will occupy a separate copy or same variable will be shared?
Which is dependent variable?
What is function and its uses?
What is the exact difference in between Unicast and Multicast object?
What is the += operator called?