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 happens when a thread cannot acquire a lock on an object? : Java thread
Is string serializable in java?
Is array size fixed in java?
What is string :: npos?
What are the advantages of encapsulation in java?
What is the use of generics? When was it added to the Java development Kit?
Does java arraylist maintain insertion order?
How can we find the sum of two linked lists using stack in java?
Can list have duplicates in java?
Explain different states of a thread in java?
what is the purpose of the wait(), notify(), and notifyall() methods? : Java thread
What are thread groups?
Lowest Common ancestor in a Binary Search Tree and Binary Tree.
What do you understand by a Static Variable?
Why do we use return statement?