Answer Posted / gyana
there are four access specifier in java.they are
public - means the the properties of class is accessable
to all other classes.
private- means the the properties of class cannot
accessable to any other classes.
protected- means the properties of class will acessed only
to its subclasses,not subclasses of its subclasses.
no access - mean you can access it with in the class.
| Is This Answer Correct ? | 6 Yes | 6 No |
Post New Answer View All Answers
What type of variable is error flag?
What does indexof return in java?
Why can we not override static method?
What is the main purpose of serialization in java?
What is stringjoiner ?
What's the base class in java from which all classes are derived?
What is an object in java?
What are synchronized blocks in java?
What is main string [] args?
How to disable caching on back button of the browser?
What is the purpose of the System class?
What is try-with-resources in java?
How do I get the | symbol on my keyboard?
What are streams in java 8?
what is a thread pool in java and why is it used?