Q:

java access modifiers : no-modifier vs "default"

I learned that there was a "default" access-modifier , as in "default" being a keyword . However this oracle tutorial doesn't mention any modifier with such a keyword. It only has a no-modifier that acts as a default. Has the "default" keyword deprecated ?

A:

The default can optionally be used in a switch statement to label a block of statements to be executed if no case matches the specified value. Alternatively, the default keyword can also be used to declare default values in a Java annotation.

A:

The "default" access modifier is when there is no access modifier given (that is, not one of public, private or protected).
default the keyword is used in the context of a switch statement. It is the "default action" to take if none of the other cases match.

