how many access specifiers are available in java
Answers were Sorted based on User's Feedback
Answer / anjani kumar jha
There are four access specifiers are available in java
Public-----------access to all
Private---------limited to class only
Protected---------limited to sub package of class
Default------------limited to same package
| Is This Answer Correct ? | 52 Yes | 10 No |
Answer / ashish shinkar
there are 4 access specifier in java
1: private
2: default
3: protected
4: public
| Is This Answer Correct ? | 15 Yes | 10 No |
Answer / kunal
There are atleast 11 access specifiers..
public , private , protected , default , final , volatile, static,transient, abstract, native, synchronized in java
| Is This Answer Correct ? | 6 Yes | 5 No |
Answer / crimohan
in java only access modifiers are present.there is no access specifiers in java
| Is This Answer Correct ? | 1 Yes | 0 No |
Answer / 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 |
Answer / umanath
Namely 4, but functionally 5
public--------------access to all
protected-----------limited to any class in same package and
sub class of any package
friendly(default)---limited to same package only
private protected---limited to sub classes of any package only
private-------------limited to same class only
| Is This Answer Correct ? | 7 Yes | 7 No |
Answer / joshua deku
There are 4 access specifiers in java
1.public
2.private
3.protected
4.private
| Is This Answer Correct ? | 0 Yes | 1 No |
What are event-delegation model and event-inheritance model? Which is best?
how can i take the inputs from users in java program?
What are hot spots in Java programming?
In which way does a Primitive data type is passed ?
What kind of variables can a class consist?
what is use of threads how many ways to create thread
What is java english?
What is the difference between and ?
What is the purpose of static methods and variables?
When do I need to use reflection feature in java?
what is the use of thread?Justify it by project point of view
How can we create a object of a class without using new operator.