What is the difference between access specifiers and access modifiers?

后端 未结 10 770
我在风中等你
我在风中等你 2020-12-13 02:02

In Java, are access specifiers and access modifiers the same thing?

10条回答
  •  轮回少年
    2020-12-13 02:38

    That JDI reference is the only place I have ever seen the term 'access specifier' used in a Java specification. Even there, public/protected/private/package are also called 'modifiers'. There's really no reason to ever use the term 'access specifier' in Java, it is clearly just a mistake on one page out of many thousands.

提交回复
热议问题