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 is singleton class example?
What is ascii format?
Explain the difference between transient and volatile in java?
What is double data type?
Can you use this() and super() both in a constructor?
Why do we need data serialization?
What is the default size of load factor in hashing based collection?
What is the difference between normal report & matrix report?
What are the differences between heap and stack memory in java?
What is int lol?
What is jpa specification?
Where are the card layouts used?
What is binary tree in java?
Why enumeration is faster than iterator?
Is java hard to learn?