Java Tutorial/Access modifiers

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