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
What is the use of accept () method in java?
Can we define private and protected modifiers for the members in interfaces?
Explain about collection interface in java?
What is java instanceof operator?
How does split work in java?
Why use string handling in Java?
Why Java is not pure Object Oriented language?
How do you add an element to an arraylist in java?
What is polymorphism java example?
What is logical variable?
How do you square a number in java?
Which java collection does not allow null?
How do you sort a string in java?
Explain the difference between abstract class and interface in java?
What is keyword in oop?