+ 5

What is difference between Access Specifiers & Access Modifiers?

15th Aug 2017, 11:27 AM
Krunal Gediya
Krunal Gediya - avatar
5 Réponses
+ 6
That makes sense. I see access modifier used most of the time to refer to private, public, etc.. Although, admittedly not by very credible sources. According to this, access specifier is not used often, and those words are used interchangeably: https://stackoverflow.com/questions/2238730/what-is-the-difference-between-access-specifiers-and-access-modifiers Meanwhile, here you see what you said: https://stackoverflow.com/questions/5026220/difference-between-access-specifier-and-access-modifier I guess some programmers use both meaning the same thing since they never heard of the differences (like me). I blame all the articles that say "access modifier". Your prof is essentially taking the word "modifier" and "specifier" litteraly; giving a real meaning to those words. So, if your prof is right (which he/she probably is), then the difference is what you said (specifiers specify access, modifiers modify access).
15th Aug 2017, 3:59 PM
Rrestoring faith
Rrestoring faith - avatar
+ 2
there is no access specifiers in Java only access modifier are there public private protected default I think they both r same
15th Aug 2017, 11:40 AM
corejava
0
Then what are final, abstract, static keywords
15th Aug 2017, 11:51 AM
Krunal Gediya
Krunal Gediya - avatar
0
My college professor told me that final,static and abstract are access modifiers coz they provide information whether they can be modified or not and Private, public, protected and default are access specifiers since they specify whether they can be accessed or not
15th Aug 2017, 11:54 AM
Krunal Gediya
Krunal Gediya - avatar
0
no final is not access modifier
15th Aug 2017, 12:31 PM
corejava