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 do you remove duplicates in java?
What are different types of expressions?
Can we sort array in java?
How to split arraylist elements in java?
What are the loops in java?
What are the different types of sorting in java?
Why are data types important?
Can java object be locked down for exclusive use by a given thread?
Is integer passed by reference in java?
Why char array is favored over string for the storage of passwords?
What are the different types of inheritance in java?
explain local datetime api in java8?
How to find the given number is a prime number or not by getting input from the user
What is an infinite loop?
Why is string buffer better than string ?