what is the difference between a getter method and an accessor method?
A getter method allows you to get the value of a field while an accessor method sets the value of the field. b. A getter method allows you to get the value of a field while an accessor method is not often used in Java. ... A getter method gets the name of the class while an accessor method gets the value of the field.