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 a parameter example?

0 Answers  


How can a class be accessed, If no access modifiers are declared?

4 Answers  


What 5 doubled?

0 Answers  


What is the purpose of skeleton and stub?

0 Answers  


Which number is denoted by leading zero in java?

0 Answers  






Can there be an abstract class with no abstract methods in it?

1 Answers  


How to sort a vector elements that contains the user define class object? (Note: If Suppose consider, A Student class contain two data members. They are String studentName and int rollNo. I am creating Four objects for this class, each object contains students details like name and roll no. Now i am storing that objects in vector and if i retiving the elements from the vector means then it should be display in sorting order)

3 Answers   ProdEx Technologies,


How can you reverse a string?

8 Answers  


What are the two types of java programming?

0 Answers  


What is inheritance?

5 Answers   Accenture, Hexaware, Syntel,


what is difference between class and object?

43 Answers   College School Exams Tests, HCL,


What is variable and constant explain with example?

0 Answers  


Categories