In Java, are access specifiers and access modifiers the same thing?
There is nothing known as "Access specifiers" in java, there are only Access modifiers in java
The misconception is from languages like C++ where public, private, protected, default are considered as Access specifiers and remaining (static, final, etc) are considered as access modifiers
Following is the proof as compiler says "modifier private not allowed here" i.e. compiler said modifier and not specifier