By default, the fields defined in a class are public, i.e., they can be used by the object outside of the class itself. However, if you want to make sure that fields remain valid, it is better to prevent outsiders from accessing those fields. This is done by making the fields private. Private fields can only be accessed by methods defined in the same class. To create a private field, place the private access modifier in front of the field.