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
Difference between notify() method and notifyall() method in java?
What is default exception handling in java?
What is concurrent hashmap and its features?
What does g mean in regex?
Does list allow duplicates in java?
explain the concept of virtual method invocation in polymorphism in detail?
Explain about collection interface in java?
Can the interface be final?
What is the loop in java?
What is the size of an array?
What is the main difference between java platform and other platforms?
Explain illegalmonitorstateexception and when it will be thrown?
What is the list interface in java programming?
Why is core java important?
What is the difference between preemptive scheduling and time slicing?