Answer Posted / venki
Private : It can access with in the class only
public :It can Access Any where
proteced:It can access with in the package and sub class of
the package also
default:it access with in the package only.
| Is This Answer Correct ? | 13 Yes | 3 No |
Post New Answer View All Answers
When should you use arraylist and when should you use linkedlist?
What happens when a thrown exception is not handled?
What is time complexity java?
What is method reference?
How can we make a class virtual?
Can we override private method in java?
How do you take thread dump in java?
Why do we need strings in java?
Explain the key functions of data binding?
How many types of literals are there in JAVA?
Explain what do you mean by functional overloading in java?
What is a superclass?
Is the empty set a singleton?
What is the difference between assignment and initialization?
Is java a prime method?