Java Tutorial/Access modifiers

In Java, there are two types of access modifiers. They're public and private. A private can call a public, but a public can't call a private. Example:

public class PublicPrivate {
private static void main ( string[] args ) {
System.out.println("This method is private");
}
}