Java provides access modifier keywords that allow or restrict access to classes, methods, and member variables. We call these Java Access Modifiers. There are four different types of access modifiers that are listed below. Public Protected Private Default Public