Difference between Access specifiers and access modifiers
shubhangi khandale
Access specifiers The access specifier determines how accessible the field is to code in other classes. Access ranges from totally accessible to totally inaccessible. You can optionally declare a field with an access specifier keyword: public, private, or protected. Access Modifiers You can optionally declare a field with a modifier keyword: final or volatile and/or static and/or transient.
Access specifiers ::
The access specifier determines how accessible the field is to code in other classes. Access ranges from totally accessible to totally inaccessible. You can optionally declare a field with an access specifier keyword: public, private, or protected.
Access Modifiers ::
You can optionally declare a field with a modifier keyword: final or volatile and/or static and/or transient, abstract, etc.