Java-Getter-Setter-Example This Student.java file is an example of using a getter method and a setter method with encapsulation.