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 the difference between length and length () in java?
What is called module?
What are the 8 primitive data types in java?
What is a stack class in java ?
Explain differences between collection api and stream api?
Tell some latest versions in JAVA related areas?
What about features of local inner class?
What are drawbacks of singleton class?
What is the point of java?
What purpose do the keywords final, finally, and finalize fulfill?
Why do we override tostring method in java?
Is ruby built on java?
What are the different ways of implementing thread? Which one is more advantageous?
Which command from the jdk compiles a java program?
What are java threads?