what is difference betwenn Access Specifier and Access
Modifier ????

Answers were Sorted based on User's Feedback



what is difference betwenn Access Specifier and Access Modifier ????..

Answer / praveen111tripathi

Access Specifiers specify the scope of anything(D.M,Member
function ,class)while Access modifiers define that thing's
accessibility in different scops
A.S. in java
1-Public
2-default
3-protected
4-private
A.M. in java
static,final etc.

Is This Answer Correct ?    19 Yes 1 No

what is difference betwenn Access Specifier and Access Modifier ????..

Answer / sudhir dhumal

Access specifiers specify the access level.

There are four access specifiers:
public, private, protected and default

Access modifiers are the keywords used to modify the statement and specify the access level.

There are three access modifiers:
public, private and protected
*Here we don't write default which means we are not modifying the statement so its not a access modifier it just specify the access level

Is This Answer Correct ?    1 Yes 0 No

Post New Answer

More Core Java Interview Questions

What is Map interface?

3 Answers   Wipro,


What is a buffer in java?

0 Answers  


What is a method in coding?

0 Answers  


How to find the size of an array a)array.length() b)array.length c)array.size() d)array.size

6 Answers   Accenture,


what is nested class in java?

0 Answers   IBS,






What is garbage collection in Java, and how can it be used ?

32 Answers   Accenture, HCL, Infosys, Sara, SITS, TCS, Wipro,


Why singleton class is used in java?

0 Answers  


Why are inner classes required?

3 Answers   Oracle,


What is a void method?

0 Answers  


What does localhost mean?

0 Answers  


What is the difference between static and non-static variables in java programming?

0 Answers  


Why is java so important?

0 Answers  


Categories