Answer Posted / umanath
Namely 4, but functionally 5
public--------------access to all
protected-----------limited to any class in same package and
sub class of any package
friendly(default)---limited to same package only
private protected---limited to sub classes of any package only
private-------------limited to same class only
| Is This Answer Correct ? | 7 Yes | 7 No |
Post New Answer View All Answers
How to call one constructor from the other constructor ?
What is the difference between instanceof and isinstance?
What is the effect of keeping a constructor private?
How to convert string to byte array and vice versa?
What is the null?
What is the difference between Error, defect,fault, failure and mistake?
How to restrict a member of a class from inheriting by its sub classes?
What is variable and constant explain with example?
What is method in research paper?
What are desktop procedures?
Differentiate between array list and vector in java.
Explain importance of throws keyword in java?
What is the use of default method in interface in java? Explain
What are advantages of exception handling in java?
Are generics important java?