What is the difference between access specifiers and access modifiers?

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

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

10条回答
  •  萌比男神i
    2020-12-13 02:45

    The term Access specifier used by c++ programmers not in java. In java Officially we use Access Modifier.

    For example: when we declare a class with private, static the compiler clearly shows the error message as follows:

提交回复
热议问题