Java access modifiers control the visibility of classes, variables, methods, and other members of a Java program. There are four access modifiers in Java. Core Java Java Access Modifiers in a Nutshell