Access and Non-Access Modifiers in Java

In Java, a modifier has a reserved keyword which is included in the definition of class, method and variables. A modifier adds some meanings to these definitions. Modifiers are also called specifiers.

These modifiers are classified into two categories. Some of the modifiers are called access modifiers and some are called non-access modifiers.